예제 #1
0
 /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /// <summary>
 /// The game is over.
 /// </summary>
 /// <param name="c"> The bomb location. </param>
 /// <param name="remainedBombs"> The number of bombs that remains. </param>
 /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void game_GameOver(Demineur.Box b, int remainedBombs)
 {
     this.timer.Enabled    = false;
     this.btnRestart.Image = Tools.GetAssemblyImage("Images", "sadSmiley.bmp");
     this.btnRestart.Focus();
     this.statusBarPanel.Text = "Fin de la partie - vous avez perdu";
 }
예제 #2
0
 /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /// <summary>
 /// The user add a flag. Display the number of bombs that remains.
 /// </summary>
 /// <param name="b"> The flaged cell. </param>
 /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void game_FlagAdded(Demineur.Box b)
 {
     this.counterBomb.SetValue(this.game.RemainedBombs);
 }