예제 #1
0
파일: MainPage.xaml.cs 프로젝트: WIEQLI/cma
        private void CorrosionPreventionButton_Click(object sender, RoutedEventArgs e)
        {
            CorrosionRecommendationPayload payload = new CorrosionRecommendationPayload
            {
                AnCat  = AnodeCategory,
                CatCat = CathodeCategory,
                aFile  = treatmentFile
            };

            this.Frame.Navigate(typeof(CorrosionPrevention), payload);
        }
예제 #2
0
        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);
        }