protected override void InitFromNavigation(BaseViewModel.NavigationInfo nav) { base.InitFromNavigation(nav); if (Model != null) { RefreshCalibrationFromCore(Model.Core); } }
protected override void InitFromNavigation(BaseViewModel.NavigationInfo nav) { RefreshAll(); // Determines if we are here because a provider wizard is needed. bool isBackNav = nav.NavigationMode == System.Windows.Navigation.NavigationMode.Back; string providerServiceName = nav.GetQueryValueOrDefault(ProviderServiceNameKey); if (nav.GetQueryValueOrDefault(ProviderWizardKey) == Boolean.TrueString && providerServiceName != null) { // A wizard should be performed if needed. if (GetOneDriveProvider().ServiceName == providerServiceName) { // A wizard for OneDrive is needed. _navigateBackIfProviderLinkWizardTerminates = true; if (!isBackNav && !IsOneDriveProviderEnabled) { // We just got here, and OneDrive is not linked: run the wizard. RunOneDriveProviderLinkWizard(); } } } }
protected override void InitFromNavigation(BaseViewModel.NavigationInfo nav) { base.InitFromNavigation(nav); // Refreshes the map content. RefreshZones(); RefreshThings(); RefreshPlayer(); // Refreshes the bounds of the map. RefreshBounds(); }