浏览代码

去除首尾空格

章政 8 年之前
父节点
当前提交
c945d6cf80
共有 1 个文件被更改,包括 13 次插入0 次删除
  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; }