public void NotifyInspectieEdited(Inspectie i) { InspectionList.Remove(InspectionList.FirstOrDefault(inspectie => inspectie.Id == i.Id)); InspectionList.Add(new InspectieVM(i)); _editWindow.Close(); _editWindow = null; }
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(); } } }
public void NotifyEditCancelled() { _editWindow.Close(); _editWindow = null; }