Ejemplo n.º 1
0
 // returns if the date is included in the range
 public static bool InRange(DateTime date, CalendarDateRange range)
 {
     return(InRange(date, range.Start, range.End));
 }
 // returns if the date is included in the range
 public static bool InRange(DateTime date, CalendarDateRange range)
 {
     return InRange(date, range.Start, range.End);
 }
 /// <summary>
 /// Returns true if any day in the given DateTime range is contained in the current CalendarDateRange.
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 internal bool ContainsAny(CalendarDateRange range)
 {
     return (range.End >= this.Start) && (this.End >= range.Start);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns true if any day in the given DateTime range is contained in the current CalendarDateRange.
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 internal bool ContainsAny(CalendarDateRange range)
 {
     return((range.End >= this.Start) && (this.End >= range.Start));
 }