public void AddDayItem(DayItem dayItem) { if (dayItem.Week != WeekNumber) { throw new ArgumentException(); } _dayItems.Add(dayItem); }
public bool IsEqual(DayItem dayItem) { // todo check Listing too? if (_listingItem == null || dayItem.ListingItem == null) { return(false); } if (!_timeSetting.isEqual(dayItem.TimeSetting)) { return(false); } if (_locality != dayItem.Locality) { return(false); } return(true); }