private void btnBack_Click(object sender, EventArgs e)
        {
            frmStudentManager std = new frmStudentManager();

            std.Show();
            this.Hide();
        }
Esempio n. 2
0
        //phương thức đăng nhập mở một form mới
        private void btnSigIn_Click(object sender, EventArgs e)
        {
            String acc  = txtAccount.Text;
            String pass = txtPassWord.Text;

            //lấy ID người dùng
            IDUser = getID(acc, pass);
            //lấy phân quyền của người dùng
            Decentralization = getDecentralization(acc, pass);
            //lấy tên của người dùng
            NameU = getName(acc, pass);
            if (IDUser != "")
            {
                Information.ID = IDUser;
                Information.Decentralization = Decentralization;
                Information.Name             = NameU;
                frmStudentManager lienket = new frmStudentManager();
                lienket.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("--> Account invalid <--", "Please enter agian", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }