コード例 #1
0
        private void getQuote(object sender, RoutedEventArgs e)
        {
            DeskOrder desk       = (DeskOrder)Application.Current.Properties["Desk"];
            double    dimensions = desk.deskSize;

            calculateRushOrderPrice(dimensions);
            // View OrderSummaryPage.xaml
            OrderSummaryPage orderSummary = new OrderSummaryPage();

            orderSummary.populate_Form();
            this.NavigationService.Navigate(orderSummary);
        }
コード例 #2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            if (rushWantedSelected == "Yes")
            {
                // View RushOrderOptions.xaml
                RushOrderOptions rushOrderPage = new RushOrderOptions();
                this.NavigationService.Navigate(rushOrderPage);
            }
            else
            {
                DeskOrder desk = (DeskOrder)Application.Current.Properties["Desk"];
                desk.rushOrderPrice = 0;

                // View OrderSummaryPage.xaml
                OrderSummaryPage orderSummary = new OrderSummaryPage();
                orderSummary.populate_Form();
                this.NavigationService.Navigate(orderSummary);
            }
        }