Exemple #1
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());
         
     }
 }
        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());

            }
        }