/// <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(); }
/// <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(); }