我使用DirectX api和C#.NET实现了一个3D模型应用程序。 最初的目的是使3D模型正常工作,到现在为止,所有代码逻辑和UI内容都在一个* .cs文件中,即主要形式。
你能不能请任何人建议我哪种设计模式适合以适当的方式隔离我的代码?
由于MVVM(Model-View-ViewModel)模式适用于WPF应用程序,因此我认为相同的设计模式可适用于3D渲染应用程序。
如果任何其他设计模式非常适合我的3D建模应用程序,请建议我。 提前致谢。
此致,库马尔
I have implemented a 3D model application using DirectX api and C# .NET. Initially started with an intention to make the 3D model working and by now, all the code logic and UI stuff everything is in one *.cs file i.e., in main form.
Could you please anyone suggest me which design pattern is suitable for segregating my code in a proper way?
As MVVM (Model-View-ViewModel) pattern is suitable for WPF application, Im under the impression that the same design pattern can be suitable for 3D rendering application.
Please suggest me if any other design pattern is well suitable for my 3D modeling application. Thanks in advance.
Regards, Kumar
最满意答案
MVVM设计模式适用于具有数据绑定的框架,例如WPF和Silverlight,如果您使用的是Windows窗体,我建议使用模型视图展示器或模型视图控制器模式
MVVM design pattern is for frameworks with data binding, such as WPF and Silverlight, if you are using windows forms I'd suggest Model View Presenter or Model View Controller patterns
更多推荐
发布评论