public 配置用户信息() { InitializeComponent(); u = new UserManege(); DataTable table = new DataTable(); table = u.getTable(); dataGridView1.DataSource = table; }
private void button2_Click(object sender, EventArgs e) { UserManege u1 = new UserManege();; if (u1.searchUser("root", "123456")) { MessageBox.Show("OK!!"); } else { MessageBox.Show("ERROR!!"); } }
public bool login_check(string userName, string passwd) { UserManege u1 = new UserManege();; if (u1.searchUser(userName, passwd)) { return(true); } else { return(false); } }