Fix compilation error by making EditMonth and EditYear instance variables
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
parent
983bac41b2
commit
f66f4c4c9b
1 changed files with 3 additions and 1 deletions
|
|
@ -15,10 +15,12 @@ namespace ShiftScheduler.Client.Pages
|
|||
private List<DateTime> DaysInMonth { get; set; } = new();
|
||||
private List<Shift> Shifts { get; set; } = new();
|
||||
private Dictionary<DateTime, string> SelectedSchedule { get; set; } = new();
|
||||
private int EditMonth { get; set; }
|
||||
private int EditYear { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
var (EditMonth, EditYear) = GetNextMonthAndYear();
|
||||
(EditMonth, EditYear) = GetNextMonthAndYear();
|
||||
|
||||
DaysInMonth = Enumerable.Range(1, DateTime.DaysInMonth(EditYear, EditMonth))
|
||||
.Select(d => new DateTime(EditYear, EditMonth, d))
|
||||
|
|
|
|||
Loading…
Reference in a new issue