private void OnAddInspectionMethod(UserPromptViewModel result) { if (result == null) { return; } if (!string.IsNullOrEmpty(result.FirstInput)) { var inspectionMethod = new InspectionMethod { Name = result.FirstInput }; InspectionMethods.Add(inspectionMethod); Repository.Add(inspectionMethod); } }
private void OnRemoveInspectionMethod(object obj) { Repository.Remove(SelectedInspectionMethod); InspectionMethods.Remove(SelectedInspectionMethod); }