1
|
Adam Kane · 技术社区 · 14 年前 |
![]() |
1
0
I think you should take care about isolate business logic from presentation logic, for instance does not place too much code in click handlers or implement commands for menu items. Get sure your code metrics does not touch generated code or don't pay attention to bad metrics in autogenerated code. |
![]() |
2
0
Can you disable or filter your CodeMetrics from grabbing *.Designer.cs, for example? 如果不是,我将使用工厂类,以便您可以在一行中创建这些结构。其缺点是,它降低了设计器的功能。在工厂中,您可以基于模板字符串+“.FielMeMeNu”来命名每个组件,这样您就可以在工厂构造函数中设置基“名称”。
To reduce code spew in your Form.cs file, consider more of a MVC approach, so that when the designer generates, say a
|