Beispiel #1
0
 public FlatRate(decimal totalPrice, int dayOffsetToMonday, HourRange timeEntry, HourRange timeExit,
                 int priority = 0, bool canExtendToFollowingDay = false) : this()
 {
     TotalPrice = totalPrice;
     Priority   = priority;
     CanExtendToFollowingDay = canExtendToFollowingDay;
     DayOffsetToMonday       = dayOffsetToMonday;
     EntryHourOffsetFrom     = 24 * DayOffsetToMonday + timeEntry.Min;
     EntryHourOffsetTo       = 24 * DayOffsetToMonday + timeEntry.Max;
     ExitHourOffsetFrom      = 24 * DayOffsetToMonday + timeExit.Min;
     ExitHourOffsetTo        = 24 * DayOffsetToMonday + timeExit.Max;
 }
 public TimeSpanRange(int dayOffset, HourRange hourRange)
     : this(dayOffset, hourRange.Min, hourRange.Max)
 {
 }