private void anwendungEndeToolStripMenuItem_Click(object sender, EventArgs e) { Connections.SendEndGameToServer(); Environment.Exit(0); }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { Connections.SendEndGameToServer(); }
private void spielEndeToolStripMenuItem1_Click(object sender, EventArgs e) { gamePanel.Visible = false; destroyGame(); Connections.SendEndGameToServer(); }