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); } }
private static void _setControlText(CallerParameter args) { if (args != null && args.Control != null && args.In_value != null) { args.Control.Text = args.in_value.ToString(); } }
private static void _getControlText(CallerParameter args) { if (args != null && args.Control != null) { args.Out_value = args.Control.Text; } }
private static void _HideControl(CallerParameter args) { if (args != null && args.Control != null) { args.Control.Hide(); } }
public static void ShowControl(Control argsControl) { CallerParameter args = new CallerParameter(); args.Control = argsControl; new ControlCaller(args.Control).Invoke(new MethodCallCaller(ThreadUiController._ShowControl), args); }
private static void _enableControl(CallerParameter args) { if (args != null && args.Control != null) { args.Control.Enabled = true; } }
private static void _ShowControl(CallerParameter args) { if (args != null && args.Control != null) { args.Control.Show(); } }
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); }
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); }
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); }
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()); }