コード例 #1
0
 public frmMakeASale(TillSysForm Parent)
 {
     InitializeComponent();
     parent   = Parent;
     makeSale = new Sales();
     saleMenu = new frmSaleMenu(parent);
 }
コード例 #2
0
        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);
            }
        }