Esempio n. 1
0
 FormMain(
     VgcApis.Interfaces.Services.IApiService api,
     Services.Settings settings,
     Services.LuaServer luaServer,
     Services.FormMgr formMgr)
 {
     this.api       = api;
     this.formMgr   = formMgr;
     this.settings  = settings;
     this.luaServer = luaServer;
     InitializeComponent();
     VgcApis.Misc.UI.AutoSetFormIcon(this);
     this.Text = Properties.Resources.Name + " v" + Properties.Resources.Version;
 }
Esempio n. 2
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);
        }
Esempio n. 3
0
        public static FormMain CreateForm(
            VgcApis.Interfaces.Services.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer,
            Services.FormMgr formMgr)
        {
            FormMain r = null;

            VgcApis.Misc.UI.Invoke(() =>
            {
                r = new FormMain(api, settings, luaServer, formMgr);
            });
            return(r);
        }
Esempio n. 4
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;
        }