Exemplo n.º 1
0
        public DemoPresenter(DemoModel model, DemoView view)
        {
            this.model = model;
            this.view = view;

            view.Presenter = this;
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Model 
            DemoModel model = new DemoModel();

            // View
            DemoView view = new DemoView();

            // Presenter
            DemoPresenter presenter = new DemoPresenter(model, view);

            Application.Run(view);
        }