Browse Source

带锁定放大镜修改

Hcsy 7 years ago
parent
commit
c952c54975

+ 1 - 0
UAS-MES/CustomControl/TextBoxWithIcon/MaCodeSearchTextBox.Designer.cs

@@ -74,6 +74,7 @@
             this.Size = new System.Drawing.Size(204, 25);
             this.Load += new System.EventHandler(this.SearchTextBox_Load);
             this.SizeChanged += new System.EventHandler(this.SearchTextBox_SizeChanged);
+            this.Leave += new System.EventHandler(this.MaCodeSearchTextBox_Leave);
             ((System.ComponentModel.ISupportInitialize)(this.Search_Icon)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();

+ 6 - 1
UAS-MES/CustomControl/TextBoxWithIcon/MaCodeSearchTextBox.cs

@@ -339,7 +339,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
 
         public void TextBox_Leave(object sender, EventArgs e)
         {
-            GetData();
+          //  GetData();
         }
 
         private void SearchTextBox_Load(object sender, EventArgs e)
@@ -353,5 +353,10 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
         {
             TextBox.Width = this.Width - Search_Icon.Width - 3;
         }
+
+        private void MaCodeSearchTextBox_Leave(object sender, EventArgs e)
+        {
+            GetData();
+        }
     }
 }