private void btn_back_Click(object sender, EventArgs e)
 {
     if (c)
     {
         frm_Prs_info_Blk f1 = new frm_Prs_info_Blk(u);
         f1.Show();
         this.Hide();
     }
     else
     {
         frm_prs_info_mpl f1 = new frm_prs_info_mpl(u);
         f1.Show();
         this.Hide();
     }
 }
示例#2
0
 private void btn_prs1_Click(object sender, EventArgs e)
 {
     if (u == "admin")
     {
         frm_prs_info_dsp f1 = new frm_prs_info_dsp("admin", true);
         f1.Show();
         this.Hide();
     }
     else if (u == "supervisor")
     {
         frm_prs_info_mpl f1 = new frm_prs_info_mpl("supervisor");
         f1.Show();
         this.Hide();
     }
     else
     {
         if (u == "guard")
         {
             frm_prs_info_dsp f1 = new frm_prs_info_dsp("guard", true);
             f1.Show();
             this.Hide();
         }
     }
 }