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

            Title = "Observationer";
            DaysFilter = "";


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

            Title      = "Observationer";
            DaysFilter = "";


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