Example #1
0
 protected override void SaveWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (Global.ShowQuestion(this))
     {
         var count          = PropsService.CountOfNotNotifiable() + MaterialsService.CountOfNotNotifiable();
         var progressWindow = new ProgressWindow(count);
         progressWindow.Show(this);
         foreach (var propID in PropsService.GetAllNotNotifiables())
         {
             PropsService.ChangeNotifiable(propID, true);
             progressWindow.IncreaseProgress();
         }
         foreach (var materialID in MaterialsService.GetAllNotNotifiables())
         {
             MaterialsService.ChangeNotifiable(materialID, true);
             progressWindow.IncreaseProgress();
         }
         progressWindow.Close();
         Global.ShowSuceeded(this);
         TryToLoad();
     }
     aiLoader.Visibility = Visibility.Collapsed;
     OnSaving            = false;
 }