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); } }