コード例 #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();
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: AbdBelf/MARS_project
 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());
         
     }
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: walidBelfadel/MARS_project
        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());

            }
        }
コード例 #4
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();
     }
 }