Пример #1
0
        private static BrandController SetupBrandController(NotepadController notepadController,
                                                            FileBrowserController fileBrowserController, IdeaController ideaController, ILoggingController loggingController, Form frame)
        {
            var brandController =
                new BrandController(notepadController, fileBrowserController, ideaController, loggingController, frame);

            notepadController.BrandController = brandController;
            return(brandController);
        }
Пример #2
0
 public MainController(NotepadController notepadController,
                       FileBrowserController fileBrowserController,
                       BrandController brandController,
                       NotepadFrame frame, IdeaController ideaController, ITodoController todoController,
                       ILoggingController loggingController)
 {
     _notepadController               = notepadController;
     _fileBrowserController           = fileBrowserController;
     _fileBrowserController.OpenFile += OpenFile;
     _brandController   = brandController;
     _frame             = frame;
     _ideaController    = ideaController;
     _todoController    = todoController;
     _loggingController = loggingController;
     BuildUserInterface(frame);
     _loggingController.Log(MessageType.information, "MainController constructed");
     _frame.scOuter.Panel2Collapsed = true;
 }
Пример #3
0
        private static void SetupMainController(NotepadController notepadController,
                                                FileBrowserController fileBrowserController, BrandController brandController, NotepadFrame notepadFrame,
                                                IdeaController ideaController, ILoggingController loggingController, ITodoController todoController)
        {
            var mainController = new MainController(notepadController, fileBrowserController, brandController, notepadFrame,
                                                    ideaController, todoController, loggingController);

            notepadFrame.Controller = mainController;
        }