/// <summary> /// called de exitgame methode waarbij de form word afgesloten en de endgame word geopend /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void Button_Exit_Click(object sender, EventArgs e) { this.PictureBox_Exit.BackgroundImage = (Bitmap)Properties.Resources.ResourceManager.GetObject("ExitButtonBlauwSpeelveld2D"); await Task.Delay(300); this.PictureBox_Exit.BackgroundImage = (Bitmap)Properties.Resources.ResourceManager.GetObject("ExitButtonBlauwSpeelveld"); BaseGame.Exitgame(); }
/// <summary> /// Wordt gerunned als er iemand disconnect /// </summary> /// <param name="error">De error, or null als die er niet is</param> public static void ServerDisconnect(string error) { if (error != null) { Console.WriteLine("> DISCONNECT (ERROR)"); Console.WriteLine(error); } else { Console.WriteLine("> DISCONNECT (NORMAL)"); } BaseGame.Exitgame(); }
/// <summary> /// saved de game en stopt de game /// </summary> public static void SaveEnEnd() { Savegame(); Bestandslocatie = ""; BaseGame.Exitgame(); }
/// <summary> /// called de exitgame methode /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void exitToolStripMenuItem1_Click(object sender, EventArgs e) { BaseGame.Exitgame(); }