Пример #1
0
        /// <summary>
        /// event handler to process when payment is cash
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void OnPaymentByCash(object sender, RoutedEventArgs e)
        {
            payment = "Pay by Cash";
            var cashDrawer = new CashRegister.CashDrawer();
            var mainWindow = this.FindAncestor <MainWindow>();
            var screen     = new CashRegisterDrawer();

            mainWindow.SwapScreen(screen);
        }
Пример #2
0
 void onPayWithCashButtonClicked(object sender, RoutedEventArgs e)
 {
     var cashDrawer = new CashRegister.CashDrawer();
 }