aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs1
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.cs12
2 files changed, 10 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs
index 55844f1..8782260 100644
--- a/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs
+++ b/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs
@@ -299,6 +299,7 @@ namespace ShiftOS.WinForms.Applications
this.Controls.Add(this.pictureBox1);
this.Name = "ShiftSweeper";
this.Size = new System.Drawing.Size(596, 426);
+ this.Load += new System.EventHandler(this.ShiftSweeper_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.flagButton)).EndInit();
this.ResumeLayout(false);
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) {
+
+ }
}
}