Esempio n. 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            fTableManager f = new fTableManager();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Esempio n. 2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string userName = txbUserName.Text;
            string passWord = txbPassWord.Text;

            if (Login(userName, passWord))
            {
                Account       loginAccount = AccountDAO.Instance.GetAccountByUserName(userName);
                fTableManager f            = new fTableManager(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên khải khoản hoặc mật khảu đăng nhập");
            }
        }
Esempio n. 3
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string userName = txbUserName.Text;
            string passWord = txbPassWord.Text;

            if (Login(userName, passWord))
            {
                Account loginAccount = AccountDAO.Instance.GetAccountByUserName(userName);
                //MessageBox.Show(loginAccount.Type.ToString());
                fTableManager f = new fTableManager(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Tên đăng nhập hoặc mật khẩu không đúng");
            }
        }
Esempio n. 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (rbtmaster.Checked == true) {
                string userName = txbUsername.Text;
                string passWord = txbPassword.Text;
                if (bLogin(userName, passWord)) {
                    fTableManager f = new fTableManager();
                    
                    this.Hide();
                    f.ShowDialog();
                    this.Show();
                }
                else
                {
                    MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!");
                }
               
            }
            else if(rbtemploy.Checked == true)
            {
                string userName = txbUsername.Text;
                string passWord = txbPassword.Text;
                //int type = int.Parse(rbtmaster.Text);
                if (bLogin1(userName, passWord ))
                {
                    fTableManager f = new fTableManager();
                    this.Hide();
                    f.ShowDialog();
                    this.Show();
                }
                else
                {
                    MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!");
                }

            }
            else
            {
                MessageBox.Show("Input error");
            }
        }
Esempio n. 5
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string username = txbUser.Text;

            string password = txbPassword.Text;

            if (Login(username, password))
            {
                fTableManager f = new fTableManager();

                this.Hide();

                f.ShowDialog();

                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên tài khoản hoặc mật khẩu !");
            }
        }
Esempio n. 6
0
        void UpdateTable()
        {
            fTableManager f = new fTableManager();

            f.LoadTable();
        }