Пример #1
0
 private void button_UserLogin_Click(object sender, EventArgs e)
 {
     if (check("Manage", "Manage_Id"))
     {
         ArrayList List     = new ArrayList();
         DataBase  database = new DataBase();
         database.SqlConnect();
         List = database.SqlSelect("Manage_Id", "Manage", textBox_User.Text, "=");
         if (List[0].ToString().Split('#')[3] == "0") //判断是否是超级管理员
         {
             Login = "******";                          //不是超级管理员
         }
         else
         {
             Login = "";//是超级管理员
         }
         Login_Name = textBox_User.Text;
         frm_Menu frm = new frm_Menu();
         frm.Show();
         this.Hide();
     }
 }