geBox.Show("请?输?入?账?号?和í密ü码?");Р }Р elseР {Р string strCon = @"server=(local);Integrated Security=true;database=newspaperorder;uid=sa;pwd=111111";Р SqlConnection MyCon = new SqlConnection(strCon);Р tryР {Р MyCon.Open();Р string sql = @"select * from 用?户§ where 用?户§账?号?=" + usernum + " and 密ü码?=" + userpass + " ";Р mand mand = new mand(sql, MyCon);Р SqlDataReader mydatareader = mand.ExecuteReader();Р if (mydatareader.HasRows)Р {Р mydatareader.Read();Р string power = mydatareader.GetString(3);Р if (power.StartsWith("管ü理え 员±"))Р {Р this.Hide();Р this.admin = new adminform(usernum);Р }Р if (power.StartsWith("普?通 用?户§"))Р {Р this.Hide();Р mon = monform(usernum);Р }Р }Р elseР {Р MessageBox.Show("账?号?或ò密ü码?不?正y确ā?");Р }Р MyCon.Close();Р }Р catch (Exception e1) { MessageBox.Show(e1.Message); }Р }