Changeset 1767 for branches/eraser6/CodeReview/Eraser.Manager/Schedule.cs
- Timestamp:
- 2/8/2010 7:09:55 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/CodeReview/Eraser.Manager/Schedule.cs
r1681 r1767 273 273 if (ScheduleType != RecurringScheduleUnit.Daily && ScheduleType != RecurringScheduleUnit.Weekly && 274 274 ScheduleType != RecurringScheduleUnit.Monthly) 275 throw new InvalidOperationException( S._("The ScheduleUnit of the schedule " +276 "does not require a frequency value, this field would contain garbage.") );275 throw new InvalidOperationException("The ScheduleUnit of the schedule " + 276 "does not require a frequency value, this field would contain garbage."); 277 277 278 278 return frequency; … … 314 314 { 315 315 if (ScheduleType != RecurringScheduleUnit.Weekly) 316 throw new InvalidOperationException( S._("The ScheduleUnit of the schedule " +317 "does not require the WeeklySchedule value, this field would contain garbage") );316 throw new InvalidOperationException("The ScheduleUnit of the schedule " + 317 "does not require the WeeklySchedule value, this field would contain garbage"); 318 318 319 319 return weeklySchedule; … … 340 340 { 341 341 if (ScheduleType != RecurringScheduleUnit.Monthly) 342 throw new InvalidOperationException( S._("The ScheduleUnit of the schedule does " +343 "not require the MonthlySchedule value, this field would contain garbage") );342 throw new InvalidOperationException("The ScheduleUnit of the schedule does " + 343 "not require the MonthlySchedule value, this field would contain garbage"); 344 344 345 345 return monthlySchedule; … … 470 470 { 471 471 if (ScheduleType != RecurringScheduleUnit.Weekly) 472 throw new ArgumentException( S._("The ScheduleUnit of the schedule does " +473 "not use the WeeklySchedule value, this field would contain garbage") );472 throw new ArgumentException("The ScheduleUnit of the schedule does " + 473 "not use the WeeklySchedule value, this field would contain garbage"); 474 474 return ((int)weeklySchedule & (1 << (int)date.DayOfWeek)) != 0; 475 475 }
Note: See TracChangeset
for help on using the changeset viewer.
