Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 private void ApiClientProvider_MustLogin(object sender, System.EventArgs e)
 {
     _MainView.Invoke(new MethodInvoker(() => { ShowLoginDialog(); }));
 }
Esempio n. 3
0
        public static void InvokeMethod(RadForm form, MethodInvoker invoker)
        {
            var methodInvoker = new MethodInvoker(invoker);

            form.Invoke(methodInvoker);
        }