Farbpalette vorladen lassen
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich cleanup and rework PDF switch to HTML export fix Colorsystem Farben für knöpfe hinzugefügt als anpassung button color button color primary and secondary change
This commit is contained in:
@@ -4,29 +4,21 @@ public class CalendarStateService
|
||||
{
|
||||
private DateTime _selectedDate = DateTime.Today;
|
||||
|
||||
public event Action<DateTime>? SelectedDateChanged;
|
||||
|
||||
public DateTime SelectedDate
|
||||
{
|
||||
get => _selectedDate;
|
||||
set
|
||||
{
|
||||
var newValue = value.Date;
|
||||
if (_selectedDate != newValue)
|
||||
{
|
||||
_selectedDate = newValue;
|
||||
SelectedDateChanged?.Invoke(_selectedDate);
|
||||
}
|
||||
var normalized = value.Date;
|
||||
if (_selectedDate == normalized)
|
||||
return;
|
||||
|
||||
_selectedDate = normalized;
|
||||
SelectedDateChanged?.Invoke(_selectedDate);
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<DateTime>? SelectedDateChanged;
|
||||
|
||||
public async Task ShowDayTabAsync(DateTime date)
|
||||
{
|
||||
SelectedDate = date.Date;
|
||||
|
||||
if (Shell.Current is null)
|
||||
return;
|
||||
|
||||
await Shell.Current.GoToAsync("//MainTabs/DayTab");
|
||||
}
|
||||
}
|
||||
public void ResetToToday() => SelectedDate = DateTime.Today;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user