/// <summary> /// reset het spel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void restartToolStripMenuItem_Click(object sender, EventArgs e) { if (BaseGame.Gamemode == 2 && GameMultiplayerOnline.Reset()) { return; } BaseGame.Reset(); BaseGame.ResetVeld(); }
/// <summary> /// reset het spel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void Buton_Reset_Click(object sender, EventArgs e) { this.PictureBox_Reset.BackgroundImage = (Bitmap)Properties.Resources.ResourceManager.GetObject("ResetButtonBlauwSpeelveld2D"); await Task.Delay(300); this.PictureBox_Reset.BackgroundImage = (Bitmap)Properties.Resources.ResourceManager.GetObject("ResetButtonBlauwSpeelveld"); if (BaseGame.Gamemode == 2 && GameMultiplayerOnline.Reset()) { return; } BaseGame.Reset(); BaseGame.ResetVeld(); }