private void Button1_Click_1(object sender, EventArgs e) { Test.database SQL = new Test.database(); if (SQL.verifyPassWord(ID.Text.ToString(), PS.Text.ToString())) { if (SQL.verifyUserRole(ID.Text.ToString())) { Main mainView = new Main(); this.Hide(); mainView.ShowDialog(); this.ID.Text = string.Empty; this.PS.Text = string.Empty; this.Show(); } else { MessageBox.Show("没有登陆权限"); } } else { MessageBox.Show("账户或密码错误"); } }