Exemple #1
0
        public void AddDayItem(DayItem dayItem)
        {
            if (dayItem.Week != WeekNumber)
            {
                throw new ArgumentException();
            }

            _dayItems.Add(dayItem);
        }
Exemple #2
0
        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);
        }