/// <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); }
void onPayWithCashButtonClicked(object sender, RoutedEventArgs e) { var cashDrawer = new CashRegister.CashDrawer(); }