Example #1
0
 private void DisplayText(IState St)
 {
     DisplayEdit.Clear();
     foreach (string s in St.Text())
     {
         DisplayEdit.AppendText(s + "\n");
     }
 }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DesignController  designController  = new DesignController();
            DisplayEdit       editDisplay       = new DisplayEdit();
            DisplayRun        runDisplay        = new DisplayRun();
            DisplayController displayController = new DisplayController(editDisplay, runDisplay);

            editDisplay.AttachController(displayController);
            runDisplay.AttachController(displayController);

            MainWindow           mainWindow           = new MainWindow();
            MainWindowController mainWindowController = new MainWindowController(mainWindow, displayController, designController);

            displayController.AttachMainWindowController(mainWindowController);
            designController.AttachMainWindowController(mainWindowController);

            Application.Run(mainWindow);
        }