private void btnBack_Click(object sender, EventArgs e) { Form CustomerForm = new CustomerPanel(); this.Hide(); CustomerForm.Show(); }
private void ShowCustomerPanelForm() { this.Hide(); Form CustomerPanelForm = new CustomerPanel(); CustomerPanelForm.Show(); }
private void btnCustomerPanel_Click(object sender, EventArgs e) { CustomerPanel customerPanel = new CustomerPanel(); this.Hide(); customerPanel.Show(); }
private void button1_Click(object sender, EventArgs e) { // Assign an image to the button. ShoppingCart Order = new ShoppingCart(); // MessageBox.Show("The amount you need to pay is " + totalPrice + "₺"); if (totalPrice <= 0) { MessageBox.Show("Your cart is empty!"); return; } string creditCardNumber = ""; if (rdbCash.Checked) { Order.PlaceOrder(creditCardNumber); } else if (rdbCredit.Checked) { creditCardNumber = tbCreditCard.Text; if (creditCardNumber == "") { MessageBox.Show("Enter a card number!"); return; } Order.PlaceOrder(creditCardNumber); } Form CustomerForm = new CustomerPanel(); this.Hide(); CustomerForm.Show(); }