private static void Show(ProgressViewModel progressViewModel) { Close(); _progress = progressViewModel; DialogService.ShowWindow(_progress); if (ApplicationService.ApplicationWindow != null) ApplicationService.Invoke(() => ApplicationService.ApplicationWindow.IsHitTestVisible = false); }
public static void Close() { if (_progress != null) _progress.ForceClose(); _progress = null; if (ApplicationService.ApplicationWindow != null) ApplicationService.Invoke(() => ApplicationService.ApplicationWindow.IsHitTestVisible = true); }