Esempio n. 1
0
 private static void _InvokeControlCustomMethod2(CallerParameter args)
 {
     if (args != null && args.Control != null && args.In_value != null && args.in_value is CustomMethodCallInvoker)
     {
         ((CustomMethodCallInvoker)args.In_value)(args.Control);
     }
 }
Esempio n. 2
0
 private static void _setControlText(CallerParameter args)
 {
     if (args != null && args.Control != null && args.In_value != null)
     {
         args.Control.Text = args.in_value.ToString();
     }
 }
Esempio n. 3
0
 private static void _getControlText(CallerParameter args)
 {
     if (args != null && args.Control != null)
     {
         args.Out_value = args.Control.Text;
     }
 }
Esempio n. 4
0
 private static void _HideControl(CallerParameter args)
 {
     if (args != null && args.Control != null)
     {
         args.Control.Hide();
     }
 }
Esempio n. 5
0
        public static void ShowControl(Control argsControl)
        {
            CallerParameter args = new CallerParameter();

            args.Control = argsControl;
            new ControlCaller(args.Control).Invoke(new MethodCallCaller(ThreadUiController._ShowControl), args);
        }
Esempio n. 6
0
 private static void _enableControl(CallerParameter args)
 {
     if (args != null && args.Control != null)
     {
         args.Control.Enabled = true;
     }
 }
Esempio n. 7
0
 private static void _ShowControl(CallerParameter args)
 {
     if (args != null && args.Control != null)
     {
         args.Control.Show();
     }
 }
Esempio n. 8
0
        public static void SetControlText(Control argsControl, string astrValue)
        {
            CallerParameter args = new CallerParameter();

            args.Control  = argsControl;
            args.In_value = astrValue;
            new ControlCaller(args.Control).Invoke(new MethodCallCaller(ThreadUiController._setControlText), args);
        }
Esempio n. 9
0
        public static void InvokeControlCustomMethod3(Control argsControl, MethodCallCaller aoCustomMethod, object[] args)
        {
            CallerParameter parameter = new CallerParameter();

            parameter.Control  = argsControl;
            parameter.In_value = args;
            new ControlCaller(parameter.Control).Invoke(aoCustomMethod, parameter);
        }
Esempio n. 10
0
        public static void InvokeControlCustomMethod2(Control argsControl, CustomMethodCallInvoker aoCustomMethod)
        {
            CallerParameter args = new CallerParameter();

            args.Control  = argsControl;
            args.In_value = aoCustomMethod;
            new ControlCaller(args.Control).Invoke(new MethodCallCaller(ThreadUiController._InvokeControlCustomMethod2), args);
        }
Esempio n. 11
0
        public static string getControlText(Control argsControl)
        {
            CallerParameter args = new CallerParameter();

            args.Control = argsControl;
            new ControlCaller(args.Control).Invoke(new MethodCallCaller(ThreadUiController._getControlText), args);
            return(args.Out_value.ToString());
        }