Exemplo n.º 1
0
        public MenuCtrl(
            Services.FormMgr formMgrService,
            Views.WinForms.FormMain formMain,
            TabEditorCtrl editorCtrl,
            ToolStripMenuItem miNewWindow,
            ToolStripMenuItem miLoad,
            ToolStripMenuItem miSaveAs,
            ToolStripMenuItem miExit)
        {
            this.formMgrService = formMgrService;

            BindControls(formMain, editorCtrl);
            BindEvents(miNewWindow, miLoad, miSaveAs, miExit);
        }
Exemplo n.º 2
0
        public MenuCtrl(
            Services.FormMgr formMgrService,
            Views.WinForms.FormMain formMain,
            TabEditorCtrl editorCtrl,
            ToolStripMenuItem miNewWindow,
            ToolStripMenuItem miLoad,
            ToolStripMenuItem miSaveAs,
            ToolStripMenuItem miExit,

            TabControl tabControlMain)
        {
            this.formMgrService = formMgrService;

            this.editorCtrl     = editorCtrl;
            this.miNewWindow    = miNewWindow;
            this.miLoad         = miLoad;
            this.miSaveAs       = miSaveAs;
            this.miExit         = miExit;
            this.tabControlMain = tabControlMain;
            this.formMain       = formMain;
        }
Exemplo n.º 3
0
 private void BindControls(Views.WinForms.FormMain formMain, TabEditorCtrl editorCtrl)
 {
     // binding
     this.editorCtrl = editorCtrl;
     this.formMain   = formMain;
 }