Esempio n. 1
0
        public SightingsViewModel(ISightingStorage sightingStorage, INotificationCenter notificationCenter)
        {
            _sightingStorage = sightingStorage;

            Title = "Observationer";
            DaysFilter = "";


            notificationCenter.Subscribe<User>(this, NotificationKeys.CurrentUserChanged, u =>
            {
                Device.BeginInvokeOnMainThread(RefreshSightings);
            });
        }
Esempio n. 2
0
        public SightingsViewModel(ISightingStorage sightingStorage, INotificationCenter notificationCenter)
        {
            _sightingStorage = sightingStorage;

            Title      = "Observationer";
            DaysFilter = "";


            notificationCenter.Subscribe <User>(this, NotificationKeys.CurrentUserChanged, u =>
            {
                Device.BeginInvokeOnMainThread(RefreshSightings);
            });
        }