protected void ShowWaiting() { if (_dlgWaiting == null) { _dlgWaiting = new dlgWaiting(); } _dlgWaiting.ShowDialog(); }
protected void HideWaiting() { try { this.Invoke(new MethodInvoker(delegate() { if (_dlgWaiting != null) { _dlgWaiting.Close(); _dlgWaiting = null; } })); } catch { if (_dlgWaiting != null) { _dlgWaiting.Close(); _dlgWaiting = null; } } }