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); }
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; } }