예제 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Modele.init();
     Application.Run(new FrmConnexion());
 }
예제 #2
0
        private void BtnOK_Click(object sender, EventArgs e)
        {
            string reponse = Modele.validConnexion(txtIdentifiant.Text, txtMDP.Text);

            lblMsg.Text    = reponse;
            lblMsg.Visible = true;
            if (reponse == "valide")
            {
                System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProc));
                t.Start();
                this.Close();
            }
        }