/// <summary> /// Could Not Connect /// </summary> /// <param name="socketID"></param> private void _socket_CouldNotConnect(string socketID) { if (_useInvokeForm) { var obj = new CouldNotConnectEventHandler(onSocketCouldNotConnect); InvokeForm.Invoke(obj, socketID); } else { CouldNotConnect(SocketID); } }
private void ApiClientProvider_MustLogin(object sender, System.EventArgs e) { _MainView.Invoke(new MethodInvoker(() => { ShowLoginDialog(); })); }
public static void InvokeMethod(RadForm form, MethodInvoker invoker) { var methodInvoker = new MethodInvoker(invoker); form.Invoke(methodInvoker); }