Exemplo n.º 1
0
 public void ChangeBoat(int selectedBoatIndex, Boat newBoat)
 {
     DeleteBoat(selectedBoatIndex);
     AddBoat(newBoat);
 }
Exemplo n.º 2
0
 public void AddBoat(Boat boat)
 {
     Boat newBoat = new Boat(boat.Type, boat.Width, boat.Length);
     _boats.Add(newBoat);
 }