- @switch (Selecting)
- {
- case Selecting.Years:
- {
-
-
-
Selecting = Selecting.Days)>@SelectedDate.ToString("yyyy")
-
-
- break;
- }
- case Selecting.Months:
- {
-
-
-
Selecting = Selecting.Years)>@SelectedDate.ToString("yyyy")
-
-
- @for (int i = 1; i <= @DateTimeFormatInfo.CurrentInfo.MonthNames.Length - 1; i++)
- {
- int m = i;
-
SetMonth(m))">
-
-
-
-
@DateTimeFormatInfo.CurrentInfo.GetMonthName(i).Substring(0,3)
-
-
-
-
- if (i%3==0) {
}
- }
- break;
- }
- case (Selecting.Days):
- {
-
-
-
Selecting = Selecting.Months)>@SelectedDate.ToString("MMMM")
-
-
-
- @for (int i = 0; i < 7; i++)
- {
-
@calendarStart.AddDays(i).ToString("ddd").Substring(0,1).ToUpper()
- }
- @foreach (var Date in Dates)
- {
-
SetDate(Date))">@Date.Day.ToString()
- @if (calendarStart.DayOfWeek.Equals(DayOfWeek.Sunday))
- {
-
- }
-
- calendarStart = calendarStart.AddDays(1);
- }
- break;
- }
- }
-