From b3bc1fd2e20b2e7610323ff7e28ced8b40c0c957 Mon Sep 17 00:00:00 2001 From: markosteger Date: Mon, 6 Mar 2023 15:22:09 +0100 Subject: [PATCH] DatePicker - fixed errors rgearding variable name changes --- .../Components/DatePicker.razor | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Connected.Components/Components/DatePicker.razor b/src/Connected.Components/Components/DatePicker.razor index c71fa15..e369771 100644 --- a/src/Connected.Components/Components/DatePicker.razor +++ b/src/Connected.Components/Components/DatePicker.razor @@ -3,16 +3,16 @@ {
-
+
@if (Shown) {
- @Date.Year.ToString() + @SelectedDate.Year.ToString()
- @Date.ToString("ddd, " + Format) + @SelectedDate.ToString("ddd, " + Format)
@@ -23,10 +23,10 @@ {
-
Selecting = Selecting.Months)>@Date.ToString("yyyy")
+
Selecting = Selecting.Months)>@SelectedDate.ToString("yyyy")
- @for (int i = Date.Year - 7; i < Date.Year + 8; i++) + @for (int i = SelectedDate.Year - 7; i < SelectedDate.Year + 8; i++) { int y = i; @@ -37,7 +37,7 @@
- if (Date.Year - i % 3 == 0) + if (SelectedDate.Year - i % 3 == 0) {
} @@ -48,7 +48,7 @@ {
-
Selecting = Selecting.Years)>@Date.ToString("MMMM yyyy")
+
Selecting = Selecting.Years)>@SelectedDate.ToString("MMMM yyyy")
@for (int i = 1; i <= @DateTimeFormatInfo.CurrentInfo.MonthNames.Length - 1; i++) @@ -74,27 +74,27 @@ {
-
Selecting = Selecting.Months)>@Date.ToString("MMMM yyyy")
+
Selecting = Selecting.Months)>@SelectedDate.ToString("MMMM yyyy")
@for (int i = 0; i < 7; i++) { -
@calendarStart.AddDays(i).ToString("ddd")
+
@CalendarStart.AddDays(i).ToString("ddd")
} - @foreach (var Date in Dates) + @foreach (var Date in ShowingDates) {
@Date.Day.ToString()
- @if (calendarStart.DayOfWeek.Equals(DayOfWeek.Sunday)) + @if (CalendarStart.DayOfWeek.Equals(DayOfWeek.Sunday)) {
} - calendarStart = calendarStart.AddDays(1); + CalendarStart = CalendarStart.AddDays(1); } break; }