public EventCallbacks(FormMainSMOG main) { mainForm = main; if (MOG_ControllerSystem.IsCommandManager()) { MOG_Callbacks callbacks = new MOG_Callbacks(); callbacks.mPreEventCallback = new MOG_CallbackCommandEvent(this.CommandPreEventCallBack); callbacks.mEventCallback = new MOG_CallbackCommandEvent(this.CommandEventCallBack); MOG_ControllerSystem.GetCommandManager().SetCallbacks(callbacks); } }
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); } }