模型视图演示者 [英] Model View Presenter

查看:93
本文介绍了模型视图演示者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以给我一个MVP模式的示例代码吗?我想在我的项目中使用它。我对MVP并不清楚。所以你的示例代码可能会帮助我。

解决方案

我认为如果您只是阅读架构模式,您会有更清楚的想法并尝试实现一些基本/原型应用程序,真正感受到这些概念:

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter [ ^ ]。



不幸的是,我们收到的请求太多了;显示一些代码样本。



不仅这个论坛的格式很难适应这么大的样本,而是这种被动学习通过盯着别人的代码,真正无效的学习方式。尽管获得理论背景知识的广泛阅读至关重要(但理论背景也是以积极的方式获得),但有效的方式总是非常活跃。



CodeProject可以提供帮助的最佳方式是 http:// www。 codeproject.com/search.aspx?doctypeid=1&q=MVP [ ^ ]。



祝你好运,

-SA

Can any give me a sample code for MVP Pattern? i want to use it in my project. i didn''t have a clear idea about MVP. so your sample code might be help me out.

解决方案

I think you would get much clearer idea is you just read on this architectural pattern and try to implement some rudimentary/prototype application, to really feel the concepts:
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter[^].

Unfortunately, we receive too many requests like that; to show some code sample.

Not only the format of this forum can hardly fit such a big sample, but this kind of passive learning, through staring at someone''s code, is really ineffective way of learning. The effective ways are always quite active, even though extensive reading to get the theoretical background knowledge is critically important (but theoretical background is also acquired in active ways).

And the best way CodeProject can help is this: http://www.codeproject.com/search.aspx?doctypeid=1&q=MVP[^].

Good luck,
—SA


这篇关于模型视图演示者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆