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 | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs index 6d9f680..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); @@ -93,6 +94,10 @@ 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