protected override void OnNavigatedFrom(NavigationEventArgs e) { base.OnNavigatedFrom(e); MajorScoreViewModel.Dispose(); SecondMajorScoreViewModel.Dispose(); StudentInfoViewModel.Dispose(); }
private async void ScoreSectionsPivot_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!secondMajorFetched && e.AddedItems.Contains(secondMajorItem)) { bool signedIn = Application.Current.GetService <ICredentialService>().IsSignedIn; await SecondMajorScoreViewModel.StartUpdateAsync(signedIn); secondMajorFetched = true; } }