Exemplo n.º 1
0
 private void CloseWaitDialog()
 {
     if (_waitDialog != null)
     {
         _waitDialog.Close();
         _waitDialog = null;
     }
 }
Exemplo n.º 2
0
        protected void CloseWaitDialog()
        {
            //if (InvokeRequired)
            //{
            //    Invoke(new MethodInvoker(CloseWaitDialog));
            //    return;
            //}

            MainThread.Post((d) =>
            {
                this.Enabled = true;

                if (_waitDialog != null)
                {
                    _waitDialog.Close();
                    _waitDialog = null;
                }
            });
        }
Exemplo n.º 3
0
 private void ShowWaitDialog(string message)
 {
     CloseWaitDialog();
     _waitDialog = new GenericWaitDialog();
     _waitDialog.ShowDialog(message);
 }
Exemplo n.º 4
0
        protected void ShowWaitDialog(string message)
        {
            //if (InvokeRequired)
            //{
            //    Invoke(new ShowWaitDialogDG(ShowWaitDialog), message);
            //    return;
            //}

            MainThread.Post((d) =>
            {
                this.Enabled = false;
                CloseWaitDialog();
                _waitDialog = new GenericWaitDialog();
                _waitDialog.ShowDialog(message);
            });
        }