WorkingHoursCollection morningShift = new WorkingHoursCollection();
morningShift.Add(new TimeSpan(6, 0, 0), new TimeSpan(14, 0, 0));
WorkingHoursCollection afternoonShift = new WorkingHoursCollection();
afternoonShift.Add(new TimeSpan(14, 0, 0), new TimeSpan(22, 0, 0));
this.scheduler.DaysOfWeekSettings = new ScheduleDaysOfWeekSettings()
{
Monday = new ScheduleDayOfWeekSettings()
{ IsWorkday = true, WorkingHours = morningShift },
Tuesday = new ScheduleDayOfWeekSettings()
{ IsWorkday = false },
Wednesday = new ScheduleDayOfWeekSettings()
{ IsWorkday = true, WorkingHours = afternoonShift },
Thursday = new ScheduleDayOfWeekSettings()
{ IsWorkday = false },
Friday = new ScheduleDayOfWeekSettings()
{ IsWorkday = true, WorkingHours = morningShift },
Saturday = new ScheduleDayOfWeekSettings()
{ IsWorkday = false },
Sunday = new ScheduleDayOfWeekSettings()
{ IsWorkday = true, WorkingHours = afternoonShift }
};