Exemple #1
0
 private void btn_back_Click(object sender, EventArgs e)
 {
     if (c)
     {
         frm_work_Info_blk f1 = new frm_work_Info_blk(u);
         f1.Show();
         this.Hide();
     }
     else
     {
         frm_work_info_mpl f1 = new frm_work_info_mpl(u);
         f1.Show();
         this.Hide();
     }
 }
Exemple #2
0
 private void btn_work1_Click(object sender, EventArgs e)
 {
     if (u == "admin")
     {
         frm_work_info_mpl f1 = new frm_work_info_mpl("admin");
         f1.Show();
         this.Hide();
     }
     else if (u == "supervisor")
     {
         frm_work_info_dsp f1 = new frm_work_info_dsp("supervisor", true);
         f1.Show();
         this.Hide();
     }
     else
     {
         if (u == "guard")
         {
             frm_work_info_dsp f1 = new frm_work_info_dsp("guard", true);
             f1.Show();
             this.Hide();
         }
     }
 }