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