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(); } }
public UIChange(UIPayment parentForm) { InitializeComponent(); _parentForm = parentForm; }