public void setHall(MainHall hall) { this.hall = hall; if (hall.getEvent() != this) { hall.setEvent(this); } }
public static bool removeHall(MainHall hall) { if (hall == null || !halls.Contains(hall)) { return(false); } if (hall.getEvent() != null) { throw new Exception("Nie można usunąć sali zajętej przez " + hall.getEvent().ToString()); } if (hall.getEstate().containsMainHall(hall)) { halls.Remove(hall); hall.getEstate().removeMainHall(hall); return(true); } return(false); }