예제 #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);
            }
        }
예제 #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);
            }



            
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if ((this.UserBox.Text != "") && (this.MdpBox.Text != ""))
            {
                bool  bol = BDGestionAccess2013.OUVRIRconnexionBD("memoireboy2013");
                Users us  = BDGestionAccess2013.REQUETEUR_USERS(this.UserBox.Text, this.MdpBox.Text);

                if (us != null)
                {
                    MBoyMain mb = new MBoyMain(us);
                    this.Hide();
                    mb.Show();
                }
                else
                {
                    Application.Exit();
                }
            }
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            if ((this.UserBox.Text != "") && (this.MdpBox.Text != ""))
            {
                bool bol = BDGestionAccess2013.OUVRIRconnexionBD("memoireboy2013");
                Users us = BDGestionAccess2013.REQUETEUR_USERS(this.UserBox.Text, this.MdpBox.Text);

                if (us != null)
                {
                    MBoyMain mb = new MBoyMain(us);
                    this.Hide();
                    mb.Show();
                }
                else
                {
                    Application.Exit();
                }

            }
            
        }