public InspectionListAdapter(InspectionSaveData inspection) { Selected = false; Inspection = inspection; DefualtColor = (Color)Application.Current.Resources["DefualtColor"]; _highlightedColor = (Color)Application.Current.Resources["HighLightColor"]; }
public void OverWrite(InspectionSaveData Inspec) { for (int i = 0; i < ListOfInspections.Count; i++) { if (ListOfInspections[i].FileSaveName == Inspec.FileSaveName) { ListOfInspections[i] = Inspec; } } }
public void Delete(InspectionSaveData Inspec) { for (int i = 0; i < ListOfInspections.Count; i++) { if (ListOfInspections[i].FileSaveName == Inspec.FileSaveName) { ListOfInspections.Remove(ListOfInspections[i]); i--; } } }
public void Store(InspectionSaveData Inspec) { ListOfInspections.Add(Inspec); Update(); }