Reacting calendar changes

This commit is contained in:
Burak Kaan Köse
2026-01-20 00:30:24 +01:00
parent 319b0af305
commit 31097e42a9
3 changed files with 112 additions and 4 deletions
@@ -86,9 +86,11 @@ public partial class CalendarAppShellViewModel : CalendarBaseViewModel,
StatePersistenceService.StatePropertyChanged += PrefefencesChanged;
}
private void SelectedCalendarItemsChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
protected override void OnDispatcherAssigned()
{
throw new NotImplementedException();
base.OnDispatcherAssigned();
AccountCalendarStateService.Dispatcher = Dispatcher;
}
private void PrefefencesChanged(object sender, string e)
@@ -5,11 +5,13 @@ using System.ComponentModel;
using CommunityToolkit.Mvvm.Collections;
using Wino.Calendar.ViewModels.Data;
using Wino.Core.Domain.Entities.Shared;
using Wino.Core.Domain.Interfaces;
namespace Wino.Calendar.ViewModels.Interfaces;
public interface IAccountCalendarStateService : INotifyPropertyChanged
{
IDispatcher Dispatcher { get; set; }
ReadOnlyObservableCollection<GroupedAccountCalendarViewModel> GroupedAccountCalendars { get; }
event EventHandler<GroupedAccountCalendarViewModel> CollectiveAccountGroupSelectionStateChanged;