diff options
| author | jtsshieh <[email protected]> | 2017-08-02 22:03:57 -0400 |
|---|---|---|
| committer | jtsshieh <[email protected]> | 2017-08-02 22:03:57 -0400 |
| commit | d2286b7d68db20fae6bdb58078853379faf5ac08 (patch) | |
| tree | db1ca88e3b2e9a7df734597b22fd45c6e02b9d67 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | |
| parent | 5fdd82f5f0069ad55662ff974a30d415543d3474 (diff) | |
| download | histacom2-d2286b7d68db20fae6bdb58078853379faf5ac08.tar.gz histacom2-d2286b7d68db20fae6bdb58078853379faf5ac08.tar.bz2 histacom2-d2286b7d68db20fae6bdb58078853379faf5ac08.zip | |
Minesweeper Scoring System
I didn't do acheivments because I couldn
t work out how to add one.
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs index 2029995..a65eedf 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs @@ -1,5 +1,6 @@ using System; using System.Drawing; +using System.Threading.Tasks; using System.Windows.Forms; using TimeHACK.Engine; @@ -51,6 +52,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private void Click(object sender, System.EventArgs e) { + if (!Dismantled) { if (Minded) @@ -63,6 +65,14 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper this.Open(); } } + if (_game.ftime == true) + { + _game.ftime = false; + _game._timer = new Timer(); + _game._timer.Interval = 1000; + _game._timer.Tick += new EventHandler(_game.TimerTick); + _game._timer.Enabled = true; + } } private void DismantleClick(object sender, MouseEventArgs e) @@ -75,9 +85,17 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper Button.BackgroundImage = null; Button.Text = "?"; } + else if(Button.Text == "?") + { + _dismantled = false; + Button.BackgroundImage = null; + Button.Text = ""; + return; + } else { _dismantled = true; + Button.Text = ""; Button.BackgroundImage = Properties.Resources.WinClassicMinesweeperFlag; } OnDismantle(); |
