コード例 #1
0
 public void NotifyInspectieEdited(Inspectie i)
 {
     InspectionList.Remove(InspectionList.FirstOrDefault(inspectie => inspectie.Id == i.Id));
     InspectionList.Add(new InspectieVM(i));
     _editWindow.Close();
     _editWindow = null;
 }
コード例 #2
0
 public void EditInspection()
 {
     if (_editWindow == null)
     {
         _editWindow       = new EditInspectionWindow();
         _editWindow.Owner = Application.Current.MainWindow;
         _editWindow.Show();
     }
     else
     {
         try
         {
             _editWindow.Show();
         }
         catch (Exception e)
         {
             _editWindow       = new EditInspectionWindow();
             _editWindow.Owner = Application.Current.MainWindow;
             _editWindow.Show();
         }
     }
 }
コード例 #3
0
 public void NotifyEditCancelled()
 {
     _editWindow.Close();
     _editWindow = null;
 }