aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/ShiftSweeper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/ShiftSweeper.cs')
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
index aaeed3f..d8de58e 100644
--- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs
+++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
@@ -205,8 +205,9 @@ namespace ShiftOS.WinForms.Applications
return bttn;
}
- private void bttnOnclick(object sender, EventArgs e)
+ private void bttnOnclick(object sender, EventArgs ee)
{
+ MouseEventArgs e = (MouseEventArgs)ee;
if (!ticking.Enabled) return;
PictureBox bttnClick = sender as PictureBox;
@@ -218,8 +219,9 @@ namespace ShiftOS.WinForms.Applications
int x = System.Convert.ToInt32(split[0]);
int y = System.Convert.ToInt32(split[1]);
+
- if (!flagtime)
+ if (!flagtime && e.Button == MouseButtons.Left)
{
if (minemap[x, y] == -1)
{
@@ -249,7 +251,7 @@ namespace ShiftOS.WinForms.Applications
else if (minemap[x, y] < -1) return;
else removeBlank(x, y);
}
- else
+ else if(flagtime || e.Button == MouseButtons.Right)
{
if (!bttnClick.Enabled) return;
@@ -364,5 +366,9 @@ namespace ShiftOS.WinForms.Applications
flagtime = true;
}
}
+
+ private void ShiftSweeper_Load(object sender, EventArgs e) {
+
+ }
}
}