I always wanted to have a small programming framework of my own. The previous method was to compile every form file into a DLL file and create a class when creating a form, then in this class
Create a new form, compile a DLL file, read the information in the DLL file through a function, including the form name and version, and finally Show the form, weifenLuo is used for Show. winFormsUI. docking. It seems that there is no problem, but every time a New form is created, a corresponding class is required. How many hundred forms are there? The project will be amazing, so I gave up this practice. After some time of conception, the general framework structure came out. I compared the two projects with identical functions, compared with my current method, the former is 6 times larger than the latter.
First, I need to use DockContent to dock the form, and then I need to use the XtraForm style (IrisSkin2.dll is really not easy to use, the style is monotonous, after the style is applied, even the properties of the control cannot be set. As we all know, it cannot be inherited. Therefore, you can write a class FrmBase directly,