Exemplo n.º 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();
            }
        }
Exemplo n.º 2
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();
     }
 }