コード例 #1
0
        /// <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();
        }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <summary>
 /// saved de game en stopt de game
 /// </summary>
 public static void SaveEnEnd()
 {
     Savegame();
     Bestandslocatie = "";
     BaseGame.Exitgame();
 }
コード例 #4
0
 /// <summary>
 /// called de exitgame methode
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void exitToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     BaseGame.Exitgame();
 }