ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingMemorySearcher.cs (file contents):
Revision 270 by william, Sun Jun 3 16:09:05 2012 UTC vs.
Revision 271 by william, Sun Jun 3 21:11:45 2012 UTC

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/03 20:57:44	270
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/03 21:11:45	271
@@ -923,7 +923,26 @@ namespace RomCheater.Docking
 
         private void btnSearch_Click(object sender, EventArgs e)
         {
+            this.SearchInProgess = true;
+            btnCancel.Enabled = true;
+            btnReset.Enabled = false;
+            btnSearch.Enabled = false;
             this.FreezeResultsUpdate();
         }
+
+        private void btnReset_Click(object sender, EventArgs e)
+        {
+            this.SearchInProgess = false;
+            btnSearch.Enabled = true;
+            btnCancel.Enabled = false;
+        }
+
+        private void btnCancel_Click(object sender, EventArgs e)
+        {
+            this.SearchInProgess = false;
+            btnCancel.Enabled = false;
+            btnSearch.Enabled = true;
+            btnReset.Enabled = true;
+        }
     }
 }