Пример #1
0
        private void OkSendOrder_Click(object sender, RoutedEventArgs e)
        {
            OrderPopup op = new OrderPopup();

            newPrice = op.getTotalPrice();
            //MessageBox.Show(newPrice.ToString());

            LastScreen myLastScreen = new LastScreen(newPrice);

            this.NavigationService.Navigate(myLastScreen);
        }
Пример #2
0
        private void sendOrder_Click(object sender, RoutedEventArgs e)
        {
            OrderPopup op = new OrderPopup();

            emptyPrice = op.getTotalPrice();
            if (emptyPrice == 0.0)
            {
                orderEmpty.IsOpen = true;
            }

            else
            {
                popUpSendOrder.IsOpen  = true;
                utilityGrid.Visibility = System.Windows.Visibility.Visible;
            }
        }