Beispiel #1
0
        private void BeforeButton_Click(object sender, RoutedEventArgs e)
        {
            SelectPayment selectPayment = new SelectPayment();

            if (NavigationService.CanGoBack)
            {
                if (OrderState.GetInstance().Count > 0)
                {
                    MessageBoxResult m = MessageBox.Show("선택하신 모든 메뉴가 삭제됩니다.", "이전 페이지로 가시겠습니까?", MessageBoxButton.YesNo);
                    if (m == MessageBoxResult.Yes)
                    {
                        OrderState.GetInstance().Clear();
                        NavigationService.GoBack();
                        return;
                    }
                    else if (m == MessageBoxResult.No)
                    {
                        return;
                    }
                }
                else
                {
                    NavigationService.GoBack();
                }
            }
        }
        private void goToPay_Click(object sender, EventArgs args)
        {
            Customer.getInstance().tableNum = selectedIdx;
            SelectPayment select            = new SelectPayment();

            NavigationService.Navigate(select);
        }
Beispiel #3
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Customer.getInstance().tableNum = 0;
            SelectPayment select            = new SelectPayment();

            NavigationService.Navigate(select);
        }