public SightingsViewModel(ISightingStorage sightingStorage, INotificationCenter notificationCenter) { _sightingStorage = sightingStorage; Title = "Observationer"; DaysFilter = ""; notificationCenter.Subscribe<User>(this, NotificationKeys.CurrentUserChanged, u => { Device.BeginInvokeOnMainThread(RefreshSightings); }); }
public SightingsViewModel(ISightingStorage sightingStorage, INotificationCenter notificationCenter) { _sightingStorage = sightingStorage; Title = "Observationer"; DaysFilter = ""; notificationCenter.Subscribe <User>(this, NotificationKeys.CurrentUserChanged, u => { Device.BeginInvokeOnMainThread(RefreshSightings); }); }