public static KM_GUIAction isAscxGuiAvailable()
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.GuiAction = IM_GUIActions.isAscxGuiAvailable;
            return(kmGuiAction);
        }
Exemplo n.º 2
0
        public static object executeOnAscxSync(string ascxToExecuteMethod, string targetMethod, string[] methodParameters)
        {
            var o2Message = KM_GUIAction.executeOnAscx(ascxToExecuteMethod, targetMethod, methodParameters);

            KO2MessageQueue.o2MessageQueue.sendMessageSync(o2Message);
            return(o2Message.returnData);
        }
Exemplo n.º 3
0
 public static KM_GUIAction getGuiAscx(string ascxToGet, Action<object> _returnDataCallback)
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction.returnDataCallback = _returnDataCallback;
     kmGuiAction.controlName = ascxToGet;
     kmGuiAction.GuiAction = IM_GUIActions.getGuiAscx;
     return kmGuiAction;
 }
        internal static KM_GUIAction closeAscxParent(string targetAscxControl)
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.controlName = targetAscxControl;
            kmGuiAction.GuiAction   = IM_GUIActions.closeAscxParent;
            return(kmGuiAction);
        }
        public static KM_GUIAction getGuiAscx(string ascxToGet, Action <object> _returnDataCallback)
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.returnDataCallback = _returnDataCallback;
            kmGuiAction.controlName        = ascxToGet;
            kmGuiAction.GuiAction          = IM_GUIActions.getGuiAscx;
            return(kmGuiAction);
        }
        internal static KM_GUIAction executeOnAscx(string ascxToExecuteMethod, string targetMethod, string[] methodParameters)
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.methodParameters = methodParameters;
            kmGuiAction.targetMethod     = targetMethod;
            kmGuiAction.controlName      = ascxToExecuteMethod;
            kmGuiAction.GuiAction        = IM_GUIActions.executeOnAscx;
            return(kmGuiAction);
        }
        internal static KM_GUIAction setAscxDockStateAndOpenIfNotAvailable(string typeOfControl, O2DockState _o2DockState, string _controlName)
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.controlName       = _controlName;
            kmGuiAction.o2DockState       = _o2DockState;
            kmGuiAction.controlTypeString = typeOfControl;
            kmGuiAction.GuiAction         = IM_GUIActions.setAscxDockStateAndOpenIfNotAvailable;
            return(kmGuiAction);
        }
        public static KM_GUIAction openControlInGui(Type _controlType, O2DockState _o2DockState, string _controlName)
        {
            var kmGuiAction = new KM_GUIAction();

            kmGuiAction.controlName = _controlName;
            kmGuiAction.o2DockState = _o2DockState;
            kmGuiAction.controlType = _controlType;
            kmGuiAction.messageText = "KM_OpenControlInGUI";
            kmGuiAction.messageGUID = new Guid();
            kmGuiAction.GuiAction   = IM_GUIActions.openControlInGui;
            return(kmGuiAction);
        }
Exemplo n.º 9
0
 internal static KM_GUIAction setAscxDockStateAndOpenIfNotAvailable(string typeOfControl, O2DockState _o2DockState, string _controlName)
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction.controlName = _controlName;
     kmGuiAction.o2DockState = _o2DockState;
     kmGuiAction.controlTypeString = typeOfControl;
     kmGuiAction.GuiAction = IM_GUIActions.setAscxDockStateAndOpenIfNotAvailable;
     return kmGuiAction;
 }
Exemplo n.º 10
0
 public static KM_GUIAction isAscxGuiAvailable()
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction. GuiAction = IM_GUIActions.isAscxGuiAvailable;
     return kmGuiAction;
 }
Exemplo n.º 11
0
 public static Control openControlInGUISync(Type controlType, O2DockState o2DockState, string controlName)
 {
     KO2MessageQueue.o2MessageQueue.sendMessageSync(KM_GUIAction.openControlInGui(controlType, o2DockState, controlName));
     return(getAscxSync(controlName));
 }
Exemplo n.º 12
0
 public static Thread getAscx(string ascxToGet, Action <object> actionReturnData)
 {
     return(KO2MessageQueue.o2MessageQueue.sendMessage(KM_GUIAction.getGuiAscx(ascxToGet, actionReturnData)));
 }
Exemplo n.º 13
0
 public static void openControlInGUI(Type controlType, O2DockState o2DockState, string controlName)
 {
     KO2MessageQueue.o2MessageQueue.sendMessage(KM_GUIAction.openControlInGui(controlType, o2DockState, controlName));
 }
Exemplo n.º 14
0
 internal static KM_GUIAction executeOnAscx(string ascxToExecuteMethod, string targetMethod, string[] methodParameters)
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction.methodParameters = methodParameters;
     kmGuiAction.targetMethod = targetMethod;
     kmGuiAction.controlName = ascxToExecuteMethod;
     kmGuiAction.GuiAction = IM_GUIActions.executeOnAscx;
     return kmGuiAction;
 }
Exemplo n.º 15
0
 public static KM_GUIAction openControlInGui(Type _controlType, O2DockState _o2DockState, string _controlName)
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction.controlName = _controlName;
     kmGuiAction.o2DockState = _o2DockState;
     kmGuiAction.controlType = _controlType;
     kmGuiAction.messageText = "KM_OpenControlInGUI";
     kmGuiAction.messageGUID = new Guid();
     kmGuiAction.GuiAction = IM_GUIActions.openControlInGui;
     return kmGuiAction;
 }
Exemplo n.º 16
0
 public static Thread executeOnAscx(string ascxToExecuteMethod, string targetMethod, string[] methodParameters)
 {
     return(KO2MessageQueue.o2MessageQueue.sendMessage(KM_GUIAction.executeOnAscx(ascxToExecuteMethod, targetMethod, methodParameters)));
 }
Exemplo n.º 17
0
 public static object setAscxDockStateAndOpenIfNotAvailable(string typeOfControl, O2DockState o2DockState, string controlName)
 {
     return(KO2MessageQueue.o2MessageQueue.sendMessage(KM_GUIAction.setAscxDockStateAndOpenIfNotAvailable(typeOfControl, o2DockState, controlName)));
 }
Exemplo n.º 18
0
 public static void closeAscxParent(string ascxControlName)
 {
     KO2MessageQueue.o2MessageQueue.sendMessage(KM_GUIAction.closeAscxParent(ascxControlName));
 }
Exemplo n.º 19
0
 internal static KM_GUIAction closeAscxParent(string targetAscxControl)
 {
     var kmGuiAction = new KM_GUIAction();
     kmGuiAction.controlName = targetAscxControl;
     kmGuiAction.GuiAction = IM_GUIActions.closeAscxParent;
     return kmGuiAction;
 }