From ebe1b011db93d47b7a29b8b4d1e371b1a97bffce Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 8 Aug 2017 10:42:48 -0400 Subject: custom minesweeper tables AND painted separators --- TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs') diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs index 1dea7e7..fc1e38f 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs @@ -13,6 +13,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private Button _button; private bool _dismantled = false; + private bool _questioned = false; private Game _game; private bool _minded = false; private bool _opened = false; @@ -124,10 +125,12 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper if (Dismantled) { _dismantled = false; + _questioned = true; Button.BackgroundImage = Properties.Resources.minesweepSquareQuestion; } - else if(Button.BackgroundImage == Properties.Resources.minesweepSquareQuestion) + else if(_questioned) { + _questioned = false; Button.BackgroundImage = Properties.Resources.minesweepSquare; return; } -- cgit v1.2.3