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