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(); } }
private void btnStopClick(object sender, EventArgs e) { network.Stop(); }