Exemple #1
0
 public void AddCompartment(Compartment newCompartment)
 {
     if (compartments.Count < 7)
     {
         compartments.Add(newCompartment);
     }
 }
Exemple #2
0
 public void AddCompartment(Compartment newCompartment)
 {
     if (compartments.Count < 7)
     {
         compartments.Add(newCompartment);
         height += newCompartment.Height + 4;
     }
 }