示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //model
            Model1 model = new Model1();

            //view
            MainView view = new MainView();

            //presenter
            Presenter1 presenter = new Presenter1(model, view);

            Application.Run(view);
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     this.btFirst.Click += btFirst_Clicked;
     this.btLast.Click += btLast_Clicked;
     this.btPrevious.Click += btPrevious_Clicked;
     this.btNext.Click += btNext_Clicked;
     this.btDelete.Click += new EventHandler(btDelete_Click);
     this.btReset.Click +=new EventHandler(btReset_Click);
     this.presenter = new Presenter1(this);
 }