Exemplo n.º 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            bool valid = false;
            MainBranch MainBranch = new MainBranch();

            //get input from text field and pass it to login validation
            valid = branchIDcheck(txtBranchID.Text);

            if (valid == true)
            {
                MainBranch.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid branch ID - please try again");
            }
        }
Exemplo n.º 2
0
 private void BtnBack_Click(object sender, EventArgs e)
 {
     MainBranch MainBranch = new MainBranch();
     MainBranch.Show();
     this.Hide();
 }