示例#1
0
        /*!
         * \brief This handler handles when the user clicks the "Review Customers" button.
         * \details This handler makes to change the page to the review customers page. This handler needs to also make sure that the user means to leave the order creation process, in progress.
         * \param sender <b>object</b>
         * \param e <b>RoutedEventArgs</b>
         */
        private void reviewCustomersBTN_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            createOrderBTN.IsEnabled     = true;
            reviewCustomersBTN.IsEnabled = false;
            reviewOrdersBTN.IsEnabled    = true;

            // Go to Review Customers page
            if (localUser.getOrderProgress() == true)
            {
                MessageBoxResult result = MessageBox.Show("You have a order in progress. Are you sure you want to exit?", "T.M.S. Application", MessageBoxButton.YesNo);
                if (result == MessageBoxResult.Yes)
                {
                    buyer_ReviewCustomers reviewCustomers = new buyer_ReviewCustomers(localUser);
                    theFrame.NavigationService.Navigate(reviewCustomers);
                    localUser.setOrderProgress(false);
                }
                else
                {
                    return;
                }
            }
            else
            {
                buyer_ReviewCustomers reviewCustomers = new buyer_ReviewCustomers(localUser);
                theFrame.NavigationService.Navigate(reviewCustomers);
            }
        }
示例#2
0
        /*!
         * \brief This handler handles when the user clicks the "Review Customers" button.
         * \details This handler changes the page to the review customers page. This handler needs to also make sure that the user means to leave the order creation process, in progress.
         * \param sender <b>object</b>
         * \param e <b>RoutedEventArgs</b>
         */
        private void ReviewCustomersBTN_Click(object sender, RoutedEventArgs e)
        {
            // Go to Review Customers page
            buyer_ReviewCustomers reviewCustomers = new buyer_ReviewCustomers(localUser);

            this.NavigationService.Navigate(reviewCustomers);
        }
        /*!
         * \brief This handler handles when the user clicks the "Review Customers" button.
         * \details This handler makes to change the page to the review customers page. This handler needs to also make sure that the user means to leave the order creation process, in progress.
         * \param sender <b>object</b>
         * \param e <b>RoutedEventArgs</b>
         */

        private void ReviewCustomersBTN_Click(object sender, RoutedEventArgs e)
        {
            // Go to Review Customers page
            if (localUser.getOrderProgress() == true)
            {
                MessageBoxResult result = MessageBox.Show("You have a order in progress. Are you sure you want to exit?", "T.M.S. Application", MessageBoxButton.YesNo);
                if (result == MessageBoxResult.Yes)
                {
                    buyer_ReviewCustomers reviewCustomers = new buyer_ReviewCustomers(localUser);
                    this.NavigationService.Navigate(reviewCustomers);
                    localUser.setOrderProgress(false);
                }
                else
                {
                    return;
                }
            }
            else
            {
                buyer_ReviewCustomers reviewCustomers = new buyer_ReviewCustomers(localUser);
                this.NavigationService.Navigate(reviewCustomers);
            }
        }