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(); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new frm_AddActor("Technician")); if (!(bool)service.FileExists("Administrator.xml")) { frm_AdminFirstConfiguration frm = new frm_AdminFirstConfiguration(); frm.ShowDialog(); if ((bool)frm.Tag) Application.Run(new AdministratorApp()); } else { frm_Login frm = new frm_Login(); frm.ShowDialog(); if (frm.Tag!=null && (bool)frm.Tag) Application.Run(new AdministratorApp()); } }
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(); } }