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