可能重复: What are MVP and MVC and what is the difference? mvc and mvp pattern 伙计们, 什么是一些使用MVC在MVP的好处是什么?我喜欢我不必为MVP使用框架,并且可以通过接口和类来实现。我仍然得到MVC关注的分离,并且我得到了单元测试。 MVC使用MVP有什么好处?
过去几天我一直在使用winforms玩MVP模式,只有一件事我不知道该怎么做。你如何从另一个视图创建子窗体。这是否是一个有效的选择。 public class MyForm : IMainFormView
{
private MainFormPresenter pres;
public MyForm() { pres = new MainFormPresenter