private void CorrosionPreventionButton_Click(object sender, RoutedEventArgs e) { CorrosionRecommendationPayload payload = new CorrosionRecommendationPayload { AnCat = AnodeCategory, CatCat = CathodeCategory, aFile = treatmentFile }; this.Frame.Navigate(typeof(CorrosionPrevention), payload); }
protected override void OnNavigatedTo(NavigationEventArgs e) { CorrosionRecommendationPayload passedPayload = e.Parameter as CorrosionRecommendationPayload; treatmentFile = passedPayload.aFile; AnodeCategory = passedPayload.AnCat; CathodeCategory = passedPayload.CatCat; DisplayRecommendations(); base.OnNavigatedTo(e); }