Browse Source

去除首尾空格

章政 7 years ago
parent
commit
c945d6cf80
1 changed files with 13 additions and 0 deletions
  1. 13 0
      UAS-MES/CustomControl/TextBoxWithIcon/EnterTextBox.cs

+ 13 - 0
UAS-MES/CustomControl/TextBoxWithIcon/EnterTextBox.cs

@@ -17,6 +17,19 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
         /// </summary>
         string AllPower1;
 
+        public override string Text
+        {
+            get
+            {
+                return base.Text.Trim();
+            }
+
+            set
+            {
+                base.Text = value;
+            }
+        }
+
         public string AllPower
         {
             get { return AllPower1; }