コード例 #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            adminmenu am = new adminmenu();

            this.Hide();
            am.Show();
        }
コード例 #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Admin objectadmin = new Admin();

            if (txtID.Text == objectadmin.id && txtPass.Text == objectadmin.password)
            {
                adminmenu menu = new adminmenu();
                this.Hide();
                menu.Show();
            }
            else
            {
                txtID.Clear();
                txtPass.Clear();
                txtID.Focus();
                lblReq.Text = "Wrong Username or Password !";
            }
        }