} // SetAction private static DaysOfTheWeek GetDaysOfTheWeek(RecordWeekDays recordWeekDays) { DaysOfTheWeek result; result = new DaysOfTheWeek(); if ((recordWeekDays & RecordWeekDays.Sunday) != 0) { result |= DaysOfTheWeek.Sunday; } if ((recordWeekDays & RecordWeekDays.Monday) != 0) { result |= DaysOfTheWeek.Monday; } if ((recordWeekDays & RecordWeekDays.Tuesday) != 0) { result |= DaysOfTheWeek.Tuesday; } if ((recordWeekDays & RecordWeekDays.Wednesday) != 0) { result |= DaysOfTheWeek.Wednesday; } if ((recordWeekDays & RecordWeekDays.Thursday) != 0) { result |= DaysOfTheWeek.Thursday; } if ((recordWeekDays & RecordWeekDays.Friday) != 0) { result |= DaysOfTheWeek.Friday; } if ((recordWeekDays & RecordWeekDays.Saturday) != 0) { result |= DaysOfTheWeek.Saturday; } return(result); } // SetSchedule
} // ToRecordWeekDays public override void SetDefaultValues() { base.SetDefaultValues(); RecurEveryWeeks = 1; WeekDays = RecordWeekly.ToRecordWeekDays(DateTime.Now.DayOfWeek); } // SetDefaultValues