Esempio n. 1
0
        /// <summary>Method: SetUpMVC
        /// make controller
        /// make model
        /// make views and
        /// show views
        /// </summary>
        private void SetUpMVC()
        {
            // make controller
            theController = new BoardController();
            // make model
            theModel = new BoardModel(theController);
            // make views
            graphicViewForm       = new GraphicViewForm();
            textViewForm          = new TextViewForm();
            filterViewForm        = new FilterViewForm();
            graphicViewForm.Model = theModel;
            textViewForm.Model    = theModel;
            filterViewForm.Model  = theModel;

            theController.AddView(graphicViewForm);
            theController.AddView(textViewForm);
            theController.AddView(filterViewForm);

            //show views
            filterViewForm.Show();
            textViewForm.Show();
            graphicViewForm.Show();
        }