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