private void ShowWaitWindow() { if (waitWindowVisible) { return; } waitWindowVisible = true; waitWindow = new WaitWindow(); waitWindow.Closed += WaitWindowClosed; waitWindow.Owner = this; waitWindow.ShowDialog(); }
private void CloseWaitWindow() { waitWindowVisible = false; try { if (waitWindow != null) { waitWindow.Closed -= WaitWindowClosed; waitWindow.Close(); waitWindow = null; } } catch { } }
private void ShowWaitWindow() { if (waitWindowVisible) return; waitWindowVisible = true; waitWindow = new WaitWindow(); waitWindow.Closed += WaitWindowClosed; waitWindow.Owner = this; waitWindow.ShowDialog(); }