Esempio n. 1
0
 private void b_quitter_Click(object sender, EventArgs e)
 {
     if (etat == false)
     {
         ControlerServeurService.arreterServeur();
         this.Close();
     }
     else if (etat == true)
     {
         this.Close();
     }
 }
Esempio n. 2
0
 private void b_manageSrv_Click(object sender, EventArgs e)
 {
     if (etat == false)
     {
         ControlerServeurService.arreterServeur();
         etat             = true;
         b_manageSrv.Text = "Démarrer Serveur";
     }
     else if (etat == true)
     {
         ControlerServeurService.demarrerServeur();
         etat             = false;
         b_manageSrv.Text = "Arreter Serveur";
     }
 }