public static void removeEvents(Event event1) { eventList.Remove(event1); foreach (EventDiet ev in event1.getConnector()) { EventDiet.removeConnector(ev); } }
public static bool removeConnector(EventDiet eventDiet) { return(set.Remove(eventDiet)); }
public ISet <Diet> getDiets() { return(EventDiet.getDiets(getConnector())); }
//asocjacja z atrybutem public ISet <EventDiet> getConnector() { return(EventDiet.getConnector(this)); }