Ejemplo n.º 1
0
        private static void Completed(IAsyncResult result)
        {
            AsyncResult _result = (AsyncResult)result;
            ShowWaitFormEventHandler showHandler = (ShowWaitFormEventHandler)_result.AsyncDelegate;

            try { showHandler.EndInvoke(result); } catch { }
            WaitFormService.Close();
        }
Ejemplo n.º 2
0
 public static void Show()
 {
     ShowWaitFormEventHandler showWaitFormEventHandler = new ShowWaitFormEventHandler(CreateForm);
     IAsyncResult             result = showWaitFormEventHandler.BeginInvoke(new AsyncCallback(Completed), null);
 }