From 2ec9898778d3beda89278e2a53ac0e68b3035d29 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 01 七月 2020 15:06:24 +0800
Subject: [PATCH] 2020-7-1-2
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs
index 3c44056..0d4f93f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs
@@ -115,6 +115,21 @@
}
if (e.Focus == true)
{
+ //鑷姩鐒︾偣閫夋嫨鍓嶉潰鐨勭┖鐧戒綅缃�
+ //if (txtCode.Text == string.Empty)
+ //{
+ // for (int i = 0; i < this.CodeLenth; i++)
+ // {
+ // if (dicCodeControls[i].Text == string.Empty)
+ // {
+ // dicCodeControls[i].FoucsChanged -= this.TxtCode_FoucsChangedEvent;
+ // dicCodeControls[i].Parent.BorderColor = UserCenterColor.Current.TextFrameSelectColor;
+ // dicCodeControls[i].Foucs = true;
+ // dicCodeControls[i].FoucsChanged += this.TxtCode_FoucsChangedEvent;
+ // return;
+ // }
+ // }
+ //}
txtCode.Parent.BorderColor = UserCenterColor.Current.TextFrameSelectColor;
}
else
@@ -217,6 +232,22 @@
}
}
+ /// <summary>
+ /// 娓呯┖杈撳叆鐨勫��
+ /// </summary>
+ public void ClearInputValue()
+ {
+ foreach (var inputText in this.dicCodeControls.Values)
+ {
+ //鍏堢Щ闄や簨浠�
+ inputText.TextChangeEventHandler -= TxtCode_TextChangeEvent;
+ //璧嬪��
+ inputText.Text = string.Empty;
+ inputText.TextChangeEventHandler += TxtCode_TextChangeEvent;
+ }
+ dicCodeControls[0].Foucs = true;
+ }
+
#endregion
#region 鈻� 鎺т欢鎽ф瘉___________________________
--
Gitblit v1.8.0