private void btnLogin_Click(object sender, EventArgs e) { if (Login(txbUserName.Text, txbPassword.Text)) { //AccountService account = new AccountService(); //account.GetAccountByUserName(txbUserName.Text); //int temp = 0; //if (txbUserName.Text == "trido123") //{ // temp = 1; //} bool style = account.GetAccountByUserName(txbUserName.Text).style; fTableManager table = new fTableManager(txbUserName.Text, txbPassword.Text, style); this.Hide(); table.ShowDialog(); this.Show(); } else { txbUserName.Text = ""; txbPassword.Text = ""; MessageBox.Show("UserName or Password isn't valid"); } }
private void btnLogin_Click(object sender, EventArgs e) { string userName = txtUserName.Text; string passWord = txtPassWord.Text; if (Login(userName, passWord)) { fTableManager f = new fTableManager(); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Sai tên đăng nhập hoặc mật khẩu!"); } }
private void btnLogin_Click(object sender, EventArgs e) { if (Login(txbUserName.Text, txbPassword.Text)) { var x = _accountService.GetAccountByUserName(txbUserName.Text); bool style = _accountService.GetAccountByUserName(txbUserName.Text).style; fTableManager table = new fTableManager(txbUserName.Text, txbPassword.Text, style); this.Hide(); table.ShowDialog(); this.Show(); } else { txbUserName.Text = ""; txbPassword.Text = ""; MessageBox.Show("UserName or Password isn't valid"); } }