protected override void OnInitialized() { base.OnInitialized(); var newDates = UpdateDates(); OnDateChangedEvent.InvokeAsync(newDates); }
public void UpdateMonth(UIMouseEventArgs e, int i) { int newMonth = SelectedMonth + i; if (newMonth > 12) { SelectedMonth = 1; SelectedYear += i; } else if (newMonth < 1) { SelectedMonth = 12; SelectedYear += i; } else { SelectedMonth += i; } var newDates = UpdateDates(); OnDateChangedEvent.InvokeAsync(newDates); }