Esempio n. 1
0
 public void AddBoat(BoatListItem boat)
 {
     _boats.Add(boat);
     SaveBoat();
 }
Esempio n. 2
0
 public void UpdateBoat(BoatListItem oldBoat, BoatListItem newBoat)
 {
     int index = 0;
     for (int i = 0; i < _boats.Count; i++)
     {
         if (_boats[i].MemberID == oldBoat.MemberID && _boats[i].BoatID == oldBoat.BoatID)
         {
             index = i;
             break;
         }
     }
     _boats[index] = newBoat;
     SaveBoat();
 }