/// <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(); }
/// <summary> /// Constructor /// </summary> /// <param name="bc"></param> public BoardModel(BoardController bc) { pieceList = new ArrayList(); controller = bc; }