Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MBoyForm mbf_log;
            MBoyMain mbm;
            int      o = -1;


            bool bol = BDGestionAccess2013.OUVRIRconnexionBD("memoireboy2013");

            if (bol)
            {
                o = BDGestionAccess2013.COUNT("users", "select count(*) from users");
                bool lob = BDGestionAccess2013.FERMERconnexionBD("memoireboy2013");
            }


            if (o > 0)
            {
                mbf_log = new MBoyForm();
                Application.Run(mbf_log);
            }
            else
            {
                mbm = new MBoyMain();
                Application.Run(mbm);
            }
        }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MBoyForm mbf_log;
            MBoyMain mbm;
            int o=-1;


            bool bol = BDGestionAccess2013.OUVRIRconnexionBD("memoireboy2013");
            if (bol)
            {
                o = BDGestionAccess2013.COUNT("users", "select count(*) from users");
                bool lob = BDGestionAccess2013.FERMERconnexionBD("memoireboy2013");
            }
            

            if (o > 0)
            {
                mbf_log = new MBoyForm();
                Application.Run(mbf_log);
            }
            else
            {
                mbm = new MBoyMain();
                Application.Run(mbm);
            }



            
        }