public void RevealPoint(Mine mine, Button button) { /* Debug.WriteLine("Explosive:" + mine.explosive); * Debug.WriteLine("Revealed:" + mine.reaveled); * Debug.WriteLine("Number:" + mine.number); * Debug.WriteLine("Flagged:" + mine.flagged);*/ if (!mine.explosive) { if (!mine.reaveled) { mine.reaveled = true; Game.RevealedPoints++; if (mine.number > 0) { button.Content = mine.number.ToString(); button.Background = Brushes.White; } else { button.Background = Brushes.White; RevealAround(mine, button); } } } else { Game.isGameOver(); RevealAll(); button.Content = "x"; button.Background = Brushes.Red; } button.Foreground = setColor(mine.number); }