/// <summary>method: completeSetUp /// make controller /// make model /// make views and /// show views /// </summary> private void completeSetUp() { // make controller theController = new CountryController(); // make model theModel = new CountryModel(theController); // make views myViewForm1 = new GraphicView(); myViewForm2 = new TextView(); myViewForm3 = new ReadOnlyView(); myViewForm1.MyModel = theModel; myViewForm2.MyModel = theModel; myViewForm3.MyModel = theModel; theController.AddView(myViewForm1); theController.AddView(myViewForm2); theController.AddView(myViewForm3); //show views myViewForm3.Show(); myViewForm2.Show(); myViewForm1.Show(); }
private void btnMakeModel_Click(object sender, System.EventArgs e) { theModel = new CountryModel(theController); }