protected override void OnInitializePage()
 {
     var navigator = new NavigatorImpl(new NavigationServiceImpl(NavigationService));
     ViewModel.Navigator = navigator;
     ViewModel.IsDirtyChanged += ViewModel_IsDirtyChanged;
     ViewModel.BeforeAddingEditingCategory += ViewModel_BeforeAddingEditingCategory;
     ViewModel.AfterAddedEditedCategory += ViewModel_AfterAddedEditedCategory;
     ViewModel.CategoryDelete += ViewModel_CategoryDelete;
     ViewModel.Load();
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     ViewModel.Untombstone();
     UntombstoneSearchButNotRestoreUi();
     var navigator = new NavigatorImpl(new NavigationServiceImpl(NavigationService));
     subConnector.Navigator = navigator;
     subConnector.Refresh();
     ViewModel.Navigator = navigator;
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (ViewModel.Navigator == null)
     {
         var navigator = new NavigatorImpl(new NavigationServiceImpl(NavigationService));
         ViewModel.Navigator = navigator;
         ViewModel.Load();
         Scores.DataContext = ViewModel.Subject.Scores;
     }
     else
     {
         ViewModel.ReturnedFromNavigation();
     }
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (ViewModel.Navigator == null)
     {
         var navigator = new NavigatorImpl(new NavigationServiceImpl(NavigationService));
         ViewModel.Navigator = navigator;
         ViewModel.Load();
         MealScores.DataContext = ViewModel.MealScores;
     }
     else
     {
         ViewModel.ReturnedFromNavigation();
         RestoreCalculationDetailsPickers();
     }
     PopulateListPickerWithSelectedInsulinCircumstances();
     InteractionEffectManager.AllowedTypes.Remove(typeof(RadDataBoundListBoxItem));
 }