public frmMakeASale(TillSysForm Parent) { InitializeComponent(); parent = Parent; makeSale = new Sales(); saleMenu = new frmSaleMenu(parent); }
private void submit_Click(object sender, EventArgs e) { getLogin(); if (login) { frmSaleMenu newMake = new frmSaleMenu(parent); newMake.Visible = true; this.Close(); } else { MessageBox.Show("Login Failed", "Incorrect Login", MessageBoxButtons.OK, MessageBoxIcon.Error); } }