소스 검색

去除首尾空格

章政 7 년 전
부모
커밋
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; }