aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-31 20:04:30 -0500
committerGitHub <[email protected]>2017-07-31 20:04:30 -0500
commit2c87be280cb1869331549e5c6160b017fabea43e (patch)
tree8b3e2d3b78b06e14805ddca8bd686c4220cf5748 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
parent87902a4c24b0c5bbd2695cfc771e9b6419c75e16 (diff)
parent677482ba0b26102b2a2802502a3f29701c319e9d (diff)
downloadhistacom2-2c87be280cb1869331549e5c6160b017fabea43e.tar.gz
histacom2-2c87be280cb1869331549e5c6160b017fabea43e.tar.bz2
histacom2-2c87be280cb1869331549e5c6160b017fabea43e.zip
Merge pull request #142 from jtsshieh/master
Made some changes to Minesweeper
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
index f7a9e99..2029995 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
@@ -37,6 +37,9 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
_button.Click += new EventHandler(Click);
_button.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender,args,2);
_button.MouseDown += new MouseEventHandler(DismantleClick);
+ _button.FlatStyle = FlatStyle.Flat;
+ _button.FlatAppearance.BorderSize = 1;
+ _button.BackgroundImageLayout = ImageLayout.Stretch;
_game.Panel.Controls.Add(Button);
}
@@ -69,13 +72,13 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
if (Dismantled)
{
_dismantled = false;
- Button.BackColor = SystemColors.Control;
+ Button.BackgroundImage = null;
Button.Text = "?";
}
else
{
_dismantled = true;
- Button.BackgroundImage = Properties.Resources.minsweeper_flag;
+ Button.BackgroundImage = Properties.Resources.WinClassicMinesweeperFlag;
}
OnDismantle();
}