예제 #1
0
파일: Form1.cs 프로젝트: xin080124/veter
        private void button1_Click(object sender, System.EventArgs e)
        {
            //create the model, controller and views
            theController = new ControllerX();
            myModel       = new ModelX(theController);
            frmView1      = new View1(myModel);
            frmView2      = new View2(myModel);

            //tell the controller about the views
            theController.AddView(frmView1);
            theController.AddView(frmView2);
        }
예제 #2
0
파일: ModelX.cs 프로젝트: xin080124/veter
 public ModelX(ControllerX aController)         //constructor
 {
     theController = aController;
 }