示例#1
0
        public MVC_Model(MVC_Controller aController)
        {
            buidlingList = new ArrayList();
            squareList = new ArrayList();

            theController = aController;
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            theController = new MVC_Controller();

            theModel = new MVC_Model(theController);

            myViewForm1 = new ViewForm1();
            myViewForm2 = new ViewForm2();
            myViewForm4 = new ViewForm4();
            myViewForm1.MyModel = theModel;
            myViewForm2.MyModel = theModel;
            myViewForm4.MyModel = theModel;
            theController.AddView(myViewForm1);
            theController.AddView(myViewForm2);
            theController.AddView(myViewForm4);

            myViewForm1.Show();
            myViewForm2.Show();
            myViewForm4.Show();
        }