private void btn_back_Click(object sender, EventArgs e)
 {
     if (c)
     {
         if (u == "admin")
         {
             frm_adm_Block f1 = new frm_adm_Block();
             f1.Show();
             this.Hide();
         }
         else if (u == "supervisor")
         {
             frm_spr_Block f1 = new frm_spr_Block();
             f1.Show();
             this.Hide();
         }
         else
         {
             if (u == "guard")
             {
                 frm_grd_Block f1 = new frm_grd_Block();
                 f1.Show();
                 this.Hide();
             }
         }
     }
     else
     {
         frm_grd_info_mpl f1 = new frm_grd_info_mpl(u);
         f1.Show();
         this.Hide();
     }
 }
예제 #2
0
        private void btn_grd_info_Click(object sender, EventArgs e)
        {
            frm_grd_info_mpl f1 = new frm_grd_info_mpl("supervisor");

            f1.Show();
            con.Dispose();
            this.Hide();
        }