Exemplo n.º 1
0
        public guiStartup(MogMainForm main)
        {
            mainForm = main;

            try
            {
                mainForm.MOGWelcomeWebBrowser.Navigate("http://www.mogware.com/Startup/Client");
            }
            catch
            {
            }

            if (!MOG_ControllerSystem.GetOffline())
            {
                InitializeMog_Projects(main);
            }
        }
Exemplo n.º 2
0
        public guiEventCallbacks(MogMainForm main)
        {
            mainForm = main;

            // Initialize arraylist
            mDialogs = new ArrayList();
            windowId = 1;

            MOG_Callbacks callbacks = new MOG_Callbacks();

            callbacks.mPreEventCallback = new MOG_CallbackCommandEvent(this.CommandPreEventCallBack);
            callbacks.mEventCallback    = new MOG_CallbackCommandEvent(this.CommandEventCallBack);
            callbacks.mCommandCallback  = new MOG_CallbackCommandProcess(this.CommandProcessCallBack);

            if (!MOG_ControllerSystem.GetOffline() && MOG_ControllerSystem.IsCommandManager())
            {
                MOG_ControllerSystem.GetCommandManager().SetCallbacks(callbacks);
            }
        }