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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 17:05:21  来源:igfitidea点击:

MVP examples for Windows Forms

c#.netwinformsmvp

提问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)。

http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx

http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx

回答by sardokan

You may want to try the ClaymoreFramework.

您可能想尝试Claymore框架。