private void btnBnumbers_Click(object sender, EventArgs e)
        {
            Hide();
            BaseMenu menu = new BaseMenu();

            menu.ShowDialog();
            menu = null;
            Show();

            this.Close();
        }
Example #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (DataReq.LoginCheck(txtEmpNumber.Text, txtEmpPass.Text) == true)
            {
                this.Hide();

                BaseMenu.empNumber = int.Parse(txtEmpNumber.Text);

                BaseMenu menu = new BaseMenu();
                menu.ShowDialog();


                this.Close();
            }

            else
            {
                MessageBox.Show("Employee ID and/or pasword not recognised", "Error 101");
                txtEmpPass.Text = "";
            }
        }