예제 #1
0
 static void start()
 {
     Licence.createLicence();
     if (Licence.verifyLicence())
     {
         if (!Utils.verifyParametre())
         {
             if (!ServeurBLL.CreateServeur(Serveur.getServeurDefault()))
             {
                 return;
             }
         }
         if (Connexion.isConnection())
         {
             new Acces();
             new Form_Parent().Show();
             //new Form_Login().Show();
             Application.Run();
         }
         else
         {
             if (Database.createDb())
             {
                 new Acces();
                 new Form_Parent().Show();
                 //new Form_Login().Show();
                 Application.Run();
             }
         }
     }
     else
     {
         Messages.ShowErreur("Vous devez activer votre compte");
     }
 }
예제 #2
0
 private void btn_save_serveur_Click(object sender, EventArgs e)
 {
     RecopieServeur();
     if (serveur.Control())
     {
         if (ServeurBLL.CreateServeur(serveur))
         {
             Messages.Succes();
             Application.Restart();
         }
     }
 }