Example #1
0
 private void buttonSalesCheckout_Click(object sender, EventArgs e)
 {
     if (dt.Rows.Count != 0)
     {
         //Open payment window
         UIComponents.UIPayment paymentWindow = new UIComponents.UIPayment(this);
         paymentWindow.ShowDialog();
         _salesTotal = 0;
         setPriceTotal();
     }
     else
     {
         UIComponents.UIError errorMessage = new UIComponents.UIError("Please enter items", "Okay");
         errorMessage.ShowDialog();
     }
 }
Example #2
0
 public UIChange(UIPayment parentForm)
 {
     InitializeComponent();
     _parentForm = parentForm;
 }