Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
0
        private static IdeaController SetupIdeaController(SqlLiteDbIdeaAdapter sqlLiteDbIdeaAdapter, NotepadFrame notepadFrame,
                                                          ILoggingController loggingController)
        {
            var ideaRepository = new IdeaRepository(sqlLiteDbIdeaAdapter);
            var ideaService    = new IdeaService(ideaRepository);
            var ideaController = new IdeaController((TabControl)notepadFrame.splitControlArea.Panel1.Controls[0],
                                                    ideaService, loggingController);

            return(ideaController);
        }
Ejemplo n.º 3
0
 public BrandController(NotepadController notepadController, FileBrowserController fileBrowserController,
                        IdeaController ideaController, ILoggingController loggingController, Form frame)
 {
     _notepadController     = notepadController;
     _fileBrowserController = fileBrowserController;
     _ideaController        = ideaController;
     _loggingController     = loggingController;
     _frame = (NotepadFrame)frame;
     SetUpIconList();
     SetIcons(true);
     ActiveBrand = Brands.Normal;
     loggingController.Log(MessageType.information, "BrandController Constructed");
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
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);
        }