草庐IT

DoCommands

全部标签

C#:将一个类拆分成多个文件(带窗体)

使用:C#、VS2008我有以下主窗体类:[Main.cs]namespaceServer{publicpartialclassPipeServerform:System.Windows.Forms.Form{...}}但是又大又长,而且包含GUI+逻辑代码。所以我将类分成多个文件以便于管理,并创建了这个只包含逻辑细节的文件:[DoCommands.cs]namespaceServer{publicpartialclassPipeServerform:System.Windows.Forms.Form{...}}这有效...但是!VS2008项目中的“DoCommands.cs”文件现