Example #1
0
        private void gestionDeProfilToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_Login frm = new frm_Login();

            frm.ShowDialog();
            if ((bool)frm.Tag)
            {
                Manager.Administrator admin = new Manager.Administrator();
                admin = admin.GetAdmin();
                frm_AdminProfile adminprofile = new frm_AdminProfile(admin);
                adminprofile.ShowDialog();
            }
        }
 private void gestionDeProfilToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frm_Login frm =new frm_Login();
     frm.ShowDialog();
     if((bool)frm.Tag)
     {
         Manager.Administrator admin = new Manager.Administrator();
         admin = admin.GetAdmin();
         frm_AdminProfile adminprofile = new frm_AdminProfile(admin);
         adminprofile.ShowDialog();
     }
 }