private void btOK_Click_1(object sender, EventArgs e) { var pass = new Login_Admin(); if (tbPass.Text == pass.pass) { flag = true; } this.Close(); }
private void btQL_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(tbSQL.Text)) { MessageBox.Show("Chưa nhập Server?", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); tbSQL.Focus(); } else { General.SQL = tbSQL.Text; Login_Admin fr2 = new Login_Admin(); fr2.ShowDialog(); bool flag = fr2.flag; fr2.Close(); } }