public void NotifyInspectieEdited(Inspectie i) { InspectionList.Remove(InspectionList.FirstOrDefault(inspectie => inspectie.Id == i.Id)); InspectionList.Add(new InspectieVM(i)); _editWindow.Close(); _editWindow = null; }
/// <summary> /// 数据加载完成后更新 /// </summary> private void OnDataLoadedCompleted() { if(IsInspection) { SelectedInspectionItem = InspectionList.FirstOrDefault(); } }