Beispiel #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();
            }
        }
Beispiel #2
0
 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());
         
     }
 }
Beispiel #3
0
        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();
     }
 }