Exemple #1
0
 public ExposuresViewModel()
 {
     MessagingCenter.Instance.Subscribe <ExposureNotificationHandler>(this, "exposure_info_changed", h =>
                                                                      Device.BeginInvokeOnMainThread(() =>
     {
         ExposureInformation.Clear();
         foreach (var i in LocalStateManager.Instance.ExposureInformation)
         {
             ExposureInformation.Add(i);
         }
     }));
 }
Exemple #2
0
 public ExposuresPageViewModel(INavigationService navigationService, IStatusBarPlatformSpecific statusBarPlatformSpecific) : base(navigationService, statusBarPlatformSpecific)
 {
     Title = Resources.AppResources.MainExposures;
     MessagingCenter.Instance.Subscribe <ExposureNotificationHandler>(this, "exposure_info_changed", h =>
                                                                      Device.BeginInvokeOnMainThread(() =>
     {
         ExposureInformation.Clear();
         foreach (var i in LocalStateManager.Instance.ExposureInformation)
         {
             ExposureInformation.Add(i);
         }
     }));
 }