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); } })); }
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); } })); }