Example #1
0
        private static void Main()
        {
            try
            {
                ProcessStartInfo startServ = new ProcessStartInfo("mysql\\start.exe");
                Process.Start(startServ);                                           //A décommenter avant mise en oeuvre
                System.Threading.Thread.Sleep(1000);

                Database.Connect();
            }
            catch
            {
                MessageBox.Show("Impossible de se connecter à la BDD");
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ac = new AssistantConnexion();
            Application.Run(ac);

            ProcessStartInfo stopServ = new ProcessStartInfo("mysql\\stop.exe");

            Process.Start(stopServ);                                            //A décommenter avant mise en oeuvre
            System.Threading.Thread.Sleep(1000);
        }
Example #2
0
        public PagePrincipal(AssistantConnexion form1, string login, bool statut)
        {
            InitializeComponent();
            this.form1 = form1;
            if (statut == false)
            {
                aToolStripMenuItem.Visible = false;
            }

            HelloBox(login);
        }
Example #3
0
 public Inscription(AssistantConnexion form1)
 {
     InitializeComponent();
     this.form1            = form1;
     textBox2.PasswordChar = '*';
 }