Пример #1
0
 private static void Show(ProgressViewModel progressViewModel)
 {
     Close();
     _progress = progressViewModel;
     DialogService.ShowWindow(_progress);
     if (ApplicationService.ApplicationWindow != null)
         ApplicationService.Invoke(() => ApplicationService.ApplicationWindow.IsHitTestVisible = false);
 }
Пример #2
0
 public static void Close()
 {
     if (_progress != null)
         _progress.ForceClose();
     _progress = null;
     if (ApplicationService.ApplicationWindow != null)
         ApplicationService.Invoke(() => ApplicationService.ApplicationWindow.IsHitTestVisible = true);
 }