private void btn_prs_info_dsp_Click(object sender, EventArgs e)
        {
            frm_prs_info_dsp f1 = new frm_prs_info_dsp(u, false);

            f1.Show();
            this.Hide();
        }
Exemple #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();
         }
     }
 }