Exemplo n.º 1
0
 private void ShowWaitDialog(string message)
 {
     CloseWaitDialog();
     _waitDialog = new GenericWaitDialog();
     _waitDialog.ShowDialog(message);
 }
Exemplo n.º 2
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);
            });
        }