#if FRAMEWORK20 using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; namespace DevComponents.Schedule.Model { /// /// Represents working day in calendar. /// public class WorkDay : BaseWorkDay { #region Internal Implementation /// /// Initializes a new instance of the WorkDay class. /// public WorkDay() { } /// /// Initializes a new instance of the WorkDay class. /// /// public WorkDay(DayOfWeek dayOfWeek) { _DayOfWeek = dayOfWeek; } /// /// Initializes a new instance of the WorkDay class. /// /// /// /// public WorkDay(DayOfWeek dayOfWeek, WorkTime workStartTime, WorkTime workEndTime) { _DayOfWeek = dayOfWeek; _WorkStartTime = workStartTime; _WorkEndTime = workEndTime; } private DayOfWeek _DayOfWeek = DayOfWeek.Monday; /// /// Gets or sets the day of week this instance represents. /// public DayOfWeek DayOfWeek { get { return _DayOfWeek; } set { if (value != _DayOfWeek) { DayOfWeek oldValue = _DayOfWeek; _DayOfWeek = value; OnDayOfWeekChanged(oldValue, value); } } } private void OnDayOfWeekChanged(DayOfWeek oldValue, DayOfWeek newValue) { OnPropertyChanged(new PropertyChangedEventArgs("DayOfWeek")); } #endregion } } #endif