C# Windows 窗体的 MVP 示例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/185993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MVP examples for Windows Forms
提问by leora
Is there good example code or a test project for explaining the Model–view–presenter (MVP) pattern. There are a lot of explanation links, but I want to have some good example code to show others without reinventing the wheel.
是否有很好的示例代码或测试项目来解释模型 - 视图 - 演示者(MVP)模式。有很多解释链接,但我想有一些很好的示例代码来向其他人展示而无需重新发明轮子。
采纳答案by Ben Scheirman
Jeremy Miller's "Build your own CAB" series is fantastic. You get a nice dose of MVP (along with some other smart client patterns such as Pub/Sub).
Jeremy Miller 的“构建您自己的 CAB”系列非常棒。您将获得大量 MVP(以及其他一些智能客户端模式,例如 Pub/Sub)。