private void btnLogin_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            if (SysAccount.LoginAccount(txtUserName.Text, txtPassword.Text))
            {
                MessageBox.Show("Tài khoản " + Utility.ACCOUNT + " đã đăng nhập thành công!", "Thành công!");

                Cursor.Current = Cursors.Default;

                this.Hide();

                RouterForm router = new RouterForm();
                router.ShowDialog();
            }
            else
            {
                MessageBox.Show("Sai tên đăng nhập hoặc mật khẩu!");
            }
        }
Beispiel #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            RouterForm router = new RouterForm();

            router.ShowDialog();
        }