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); }