private void NetworkClientPlayAgainResponse(object sender, PlayAgainArgs e)
 {
     if (e.Response == "yes")
     {
         NewGame();
     }
     else
     {
         MessageBox.Show("Client refused to play again", "Game ended", MessageBoxButtons.OK);
         network.Stop();
     }
 }
Exemple #2
0
 private void btnStopClick(object sender, EventArgs e)
 {
     network.Stop();
 }