Exemple #1
0
        private void completeSetUp()
        {
            // make controller
            theController = new GraphController();
            // make model
            theModel = new GraphModel(theController);
            // make views
            myViewForm1 = new Form1();
            myViewForm2 = new Form2();
            myViewForm3 = new Form3();

            myViewForm1.GModel = theModel;
            myViewForm2.GModel = theModel;
            myViewForm3.GModel = theModel;

            theController.AddView(myViewForm1);
            theController.AddView(myViewForm2);
            theController.AddView(myViewForm3);

            //show views
            myViewForm1.Show();
            myViewForm2.Show();
            myViewForm3.Show();
        }
Exemple #2
0
 public GraphModel(GraphController aController)
 {
     graphRecords  = new ArrayList();
     theController = aController;
 }