使用MVC设计模式编写点网桌面应用程序
我接到一项任务,要求使用 C# 制作桌面应用程序。它必须使用 MVC 设计模式来完成,但我找不到任何可以展示如何使用基于桌面的应用程序来完成此操作的教程。我能找到的所有教程都展示了如何在网络(asp.net)上执行此操作。
所以我想知道是否有人可以向我推荐一本正在执行此操作的书籍或在线教程?
I got an assignment to make a Desktop application using C#. It has to be done using MVC design pattern, but I can't find any tutorial which can show how to do it with Desktop based application. All the tutorials which I can find show how to do it for web (asp.net).
So I was wondering if someone can suggest me a book or online tutorial which is doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我总是通过这样做来学习这是一个非常基本的例子。 Web或Windows,没关系...
Model
View
Controller
你可以通过这种方式绑定任何成员,例如事件
I always learned by doing so here's a very basic example. Web or Windows, doesn't matter...
Model
View
Controller
You can bind any members this way, such as events
由于这是作业,我相信您的老师,更重要的是您自己,都渴望学习 MVC 背后的技巧。因此,虽然检查 MVC 框架可能会有所帮助,但我建议您自己实现基本功能。
也就是说,请查看维基百科的文章 首先(不幸的是,这不是那么好),然后检查 Microsoft 的做法< /a> 就可以了。
一旦掌握了这些概念,就可以尝试实现一个基本的三元组来执行“某事”,但没什么特别的。如果您有疑问,请回到SO,以便我们可以解决。并且不要忘记 SO 的新聊天功能。
Since this is homework, I believe that you teacher and, more importantly, yourself, desire to learn the tricks behind MVC. So, while checking MVC Frameworks might help, I recommend you implement basic functionality on your own.
That said, take a look at Wikipedia's article first (which, unfortunately isn't that good), then check Microsoft's take on it.
Once you grasp the concepts, try implement a basic triplet that does "something", nothing really fancy. If you have doubts, come back to SO so that we can solve then. And don't forget the new chat functionality of SO.
您可能会考虑几种不同的途径。
There are a few different avenues you might look at.