From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 18 九月 2020 13:58:19 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs
index 5f89c79..8f534b8 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs
@@ -50,7 +50,8 @@
         /// <para>鍋氭垚涓�涓脊绐楀瀷锛屽乏涓嬭鏄�愬彇娑堟寜閽�戯紝鍙充笅瑙掓槸銆愮‘璁ゆ寜閽�戠殑寮圭獥鎺т欢</para>
         /// <para>New鐨勬椂鍊�,灏卞凡缁忓姞鍏ュ埌浜嗙晫闈�</para>
         /// </summary>
-        public DialogInputControl()
+        /// <param name="i_MaxByte">鏂囨湰妗嗘渶澶ц緭鍏ョ殑byte鏁�(榛樿36涓猙yte)</param>
+        public DialogInputControl(int i_MaxByte = 36)
         {
             //娣诲姞鐣岄潰
             var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
@@ -68,7 +69,7 @@
             frameBack.BackgroundColor = UserCenterColor.Current.White;
             frameBack.Y = Application.GetRealHeight(691);
             frameBack.Gravity = Gravity.CenterHorizontal;
-            frameBack.Radius = 8;
+            frameBack.Radius = (uint)Application.GetRealHeight(17);
             this.AddChidren(frameBack);
             //鏍囬淇℃伅
             this.btnTitle = new NormalViewControl(frameBack.Width, Application.GetRealHeight(65), false);
@@ -86,13 +87,17 @@
             frameText.Gravity = Gravity.CenterHorizontal;
             frameText.BorderColor = 0xff676767;
             frameText.BorderWidth = 1;
-            frameText.Radius = 8;
+            frameText.Radius = (uint)Application.GetRealHeight(17);
             frameBack.AddChidren(frameText);
             //杈撳叆妗�
             this.txtInput = new TextInputControl(frameText.Width - Application.GetRealWidth(20), frameText.Height, false);
             txtInput.TextAlignment = TextAlignment.Center;
             txtInput.Gravity = Gravity.CenterHorizontal;
             frameText.AddChidren(txtInput);
+            if (i_MaxByte > 0)
+            {
+                this.txtInput.MaxByte = i_MaxByte;
+            }
 
             //鍙栨秷
             this.btnCancel = new BottomLeftClickButton(Application.GetRealWidth(396), Application.GetRealHeight(127));

--
Gitblit v1.8.0