Exemplo n.º 1
0
 /// <summary>
 /// Methode qui va attendre l'acceptation du serveur
 /// </summary>
 private void ClientConnectedServer()
 {
     // Client
     while (!ready_client)
     {
         ;
     }
     p            = new Partie(1, this, textBox1.Text.ToString());
     ready_client = false;
     this.ChangeVisibily(false);
     p.ShowDialog();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Methode qui va attendre une connexion d'un client
 /// </summary>
 private void ClientConnected()
 {
     // Serveur
     while (!ready)
     {
         ;
     }
     p     = new Partie(0, this, textBox1.Text.ToString());
     ready = false;
     this.ChangeVisibily(false);
     p.ShowDialog();
 }