Im trying to clean up the messy code codedom creates...
CodeDom can not make While loops in CSharp language. it creates an for loop "which is actualy what an while loop is", but an developer, will always want to write an while loop instead of an for loop when it looks like i wrote above...
Thats what i want to do...
With greate code, comes greate complexity, so keep it simple stupid...
Is it possible to create a installer/setup file and make it as a CD and we should use this CD in one PC. If that CD is already used in particular PC and that CD should not support other PC. Is this possible.
1. That is no possibilities to write to CD (except if you have a CD Recorder)...
2. It's like Mission Impossible ... this CD will be explode in 5 sec..
Change your application, that the user must be register first.
If you create a serial number for that PC, you must take for example MAC-Address for the serial number.
That means, that serial number is valid only for that MAC-Address. Not for other PC.
I have saw some software CD's that can be used in only one PC. If that CD is used in one machine you cannot use that CD in another machine. I heared that they have used embedded systems. I did not find any clue please advice
typeofOPCserver OPCserverObj = (typeofOPCserver)Activator.CreateInstance( typeofOPCserver ); ??
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
My programs never have bugs, they just develop random features.
I have the usual layers UI, objects, DAL and SQL Server.
In VB I instantiate the DAL in the object layer using a friend variable in a module. This allows me to use the DAL in any class in the object layer without exposing the DAL to the UI. DAL stays alive as long as the app is in process.
Now C# does not have the module concept and I do not want to pass the DAL to the UI to pass to each class in the object layer. I assume it is done with a static class but I am struggling to get it just right.
 What you can do is to create a public static variable on a class and use it like...
The only problem is static classes cannot have constructors, so can I declare the static class, pass values to a method that instantiates the static DAL? Then use the static DAL var in the other classes
Never underestimate the power of human stupidity
I have one class derived from ContentControl.
And inside it's content I have ImageSource and a TextBlock, I want to bind the Text property of TextBlock to the Name proeprty of an object but it's not working.Below is the code snippet:
public void AddBitmapToCanvas(System.Drawing.Bitmap bitmap, string pageName,int width,int height,HorizonPage hpage)