Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonthCalendarWeek"/> class.
 /// </summary>
 /// <param name="month">
 /// The corresponding <see cref="MonthCalendarMonth"/> that contains this instance.
 /// </param>
 /// <param name="weekNumber">
 /// The corresponding week number.
 /// </param>
 /// <param name="start">
 /// The start date of the week.
 /// </param>
 /// <param name="end">
 /// The end date of the week.
 /// </param>
 public MonthCalendarWeek(MonthCalendarMonth month, int weekNumber, DateTime start, DateTime end)
 {
     this.WeekNumber = weekNumber;
     this.Start = start;
     this.End = end;
     this.Month = month;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonthCalendarDay"/> class.
 /// </summary>
 /// <param name="month">
 /// The <see cref="MonthCalendarMonth"/> in which the day is in.
 /// </param>
 /// <param name="date">
 /// The <see cref="DateTime"/> the <see cref="MonthCalendarDay"/> represents.
 /// </param>
 public MonthCalendarDay(MonthCalendarMonth month, DateTime date)
 {
     this.Month = month;
     this.Date = date;
     this.Calendar = month.Calendar;
 }