This is sad issue…
I added to there a lot of checks like:
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Profiles");
Replaced with:
#if DEMO
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Lines");
#else
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Profiles");
#endif
But once I added event handler to one of form events, all my checks gone -_-
What can i do to make keep those but be able to change form via designer?
I use VC# Express 2010
The point of the
.designer.csfile is that it gets regenerated every time you make designer changes.As you have seen, generated files should not be edited, because they get regenerated and any changes you have made will be lost.
Make these changes in the class constructor.