From 4fd3293e2f68ea7f4d5b8d958746c21be620ad16 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 6 Aug 2017 09:20:14 -0400 Subject: fixed bug --- TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs index fd6704a..30e9349 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs @@ -75,14 +75,14 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private void Explode(object sender, EventArgs e) { - _timer.Enabled = false; + if (_timer != null) _timer.Enabled = false; foreach (Square s in _squares) { s.RemoveEvents(); if (s.Minded) { s.Button.Text = "*"; - s.Button.Font = new System.Drawing.Font("Arial Black", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + s.Button.Font = new Font("Arial Black", 16F, FontStyle.Regular, GraphicsUnit.Point, ((System.Byte)(0))); s.Button.ForeColor = Color.Black; } } -- cgit v1.2.3