Beispiel #1
0
 private void UnHideTile(int x, int y)
 {
     if (!GameData.GetCellFlagged(x, y) && GameData.SetAsUnHidden(x, y))
     {
         Label btn = GameForm.Controls.Find(string.Format("mineButtonX{0}Y{1}", x, y), true)[0] as Label;
         GameForm.Controls.Remove(btn);
         if (GameData.GetCellValue(x, y) == 0)
         {
             ClearSurroundingButtons(x, y);
         }
     }
 }