private void button_Disper_Click(object sender, EventArgs e)
        {
            this.Close();
            frm_Menu frm = new frm_Menu();

            frm.Show();
        }
예제 #2
0
        private void button_PassLogin_Click(object sender, EventArgs e)
        {
            Login = "******";       //暂不登陆
            frm_Menu frm = new frm_Menu();

            frm.Show();
            this.Hide();
        }
예제 #3
0
 private void button_ReaderLogin_Click(object sender, EventArgs e)
 {
     if (check("Reader", "Reader_Id"))
     {
         Login      = "******";  //读者登录
         Login_Name = textBox_User.Text;
         frm_Menu frm = new frm_Menu();
         frm.Show();
         this.Hide();
     }
 }
예제 #4
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();
     }
 }