Hi All
I am using ClickOnce for a C# Windows Forms application, and want to allow people to update the software by clicking an Update button, which will check the server online to see if there are any updates. I am using the following method (not exact, but same principle):
ApplicationDeployment ad = ApplicationDeployment.CurrentDeploy...
The application I work on includes a print server that needs to print to a number of different printers and plotters at a number of different sizes (ANSI A, B, D, E, ISO A0, A1, A2, A3) in both landscape and portrait configurations. Users are not print savvy and so specify their print job very simply (document, zone, paper size), but th...
Using WPF's FlowDocument, I have run in to a number of situations where I need more control over the layout of the document, from simple things (page headers and footers) to more complex (footnotes, magazine style story flow) to even more complex (literary texts with critical apparatus - one of my actual requirements).
However, as far a...
Hi there.
I'm trying to write a generic repository for my Entity Framework based application. Here's my prototype code:
Interface
public interface IDomainRepository
{
T GetById<T>(int id, Expression<Action<T>> idx)
}
and the repository:
public class DomainRepository : IDomainRepository
{
private readonly...
I've done quite a bit of WF development using 3.5 over the last few years, but am just now ramping up on WF in 4.0. I have a TDD bent, and while WF 3.5 was difficult at times to unit test, I'm wondering if anyone could share their strategy for unit testing workflows in WF 4 and/or point me to resources that would help get me started?
...
This is how I do it currently:
ref class Base abstract {};
ref class ConcreteClass1 : public Base {};
ref class ConcreteClass2 : public Base {};
(...and even more...)
void DoStuff(Base ^base)
{
System::Type ^type = base->GetType();
System::String ^name = type->Name;
if(name == "ConcreteClass1")
DoOtherStuff((Concret...
i am developing billing software using .net win application. so i need to bind combo box in grid column1, column2.
how can i do that?
...
Hello,
I have created a simple MVVM, with only three classes CashFlowView, CashFlowViewModel, CashFlowModel.
I use an infragistic's 9.1 XamDataPresenter (or xamDataGrid).
<igDP:XamDataPresenter Name="xamDataPresenter1" DataSource="{Binding Source={StaticResource CashFlowData}}">
<ObjectDataProvider x:Key="CashFlowData" Obje...
Is there a way to render a "Sign Out" button using DotNetOpenAuth.
Basically I need some sort of Log In status control, that would display the OpenId login form, just like OpenIdLogin Control does, if the user is not logged in and it would show a Sign Out link along with some sort of message like "Welcome back user" once the user logs ...
So I've got this exception defined, protected constructors, static constructor methods (so all the exceptions are generated with the same formatting and I don't have to fight in the constructors. Anyway, this is besides the point... (not my issue? let's leave that alone k?)
public class ValidationException : Exception
{
// Constructo...
Does the full dictionary path need to be specified for the DataSource? I have tried using the database AliasName and it doesn't seem to work.
...
I'm creating a DB using SQLite from .NET, and then inserting 1500 records (15 columns, only 3 with information). At this point the database file size is 73mb!! (huge for the amount of information involved).
If I open SQLite Administrator, and do a Clear Database, it shrinks to only 142kb.
What it's doing that? Anyway to avoid it?
Eithe...
Hi there,
I've searched SO for help but could'nt find a answer to my question.
Situation: I need to convert a "/NN" subnet mask notation (think IPTABLES) to a 0.0.0.0 cisco notation.
NN are the number of "1" in the submask, from the lowest octet to the higher. Each octet are 8 bit integers.
Possible solution:
Make a array of 32 "0"...
I'm trying to convert a solution from VS.NET 2008 to 2010. The solution includes a Windows Service project and a Setup project that installs the Windows Service. I'm having trouble compiling the Setup project. I've tried starting this over from scratch a few times, following the tutorial here under the section titled To create a setup pr...
I have a number of Windows servers. I want to run one copy of the same Windows Service (written in .NET) on each of the servers such that at any one time only one of them is "active" and all the others are passive. If the active windows service dies then a very short time later one, and only one, of the remaining passive windows services...
Hi,
In our web application we use the UI Process block (http://msdn.microsoft.com/en-us/library/ee817680.aspx) whose configuration with views defined in the web.config as follows:
My problem is when I run the code on the asp.net development server (http://localhost:2547) the view redirects me to http://Test1.aspx not http://localho...
I'm working on a webpart for a sharepoint 2010 installation. This has multiple sites, and each site has pages, and may have subsites, themselves with more pages and sites. I want to get a list of all pages in the entire installation that match a certain criteria (eg title == "Test").
I can do this using a CAML SPSiteDataQuery object an...
In my webpage I am using combobox & searchbutton.
When i select a value from combobox then i click the search button, the combobox first matching value is displaying
For Example
combobox values are - 001, 002, 003
When i select the value in the combobox -003
Then i click the search button
The page is refreshing and 001 values are di...
I am trying to set up expectations on methods of a mocked object in Moq. At the same time, using Ninject, I try to have the kernel return my set up mock whenever a caller wants the corresponding interface. For more clarity, here's some pseudocode
Class Car {
Void buildChassis() {
Engine = ObjectBuilder.get<Iengine>()
...
Normally I wouldn't "need" or even consider a ridiculous feature such as code regions within method bodies but: I'm refactoring VB.NET code where methods routinely run five hundred lines and the references are so tightly coupled that the code defies simple refactoring such as method extraction.
And that's why I thought I would try regi...