| | |
| | | // }
|
| | | //}
|
| | | txtCode.Parent.BorderColor = UserCenterColor.Current.TextFrameSelectColor;
|
| | | #if Android
|
| | | txtCode.SetSelectionEnd(); |
| | | #endif
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (textValue.Length == this.CodeLenth)
|
| | | {
|
| | | dicCodeControls[this.CodeLenth - 1].Foucs = true;
|
| | | #if Android
|
| | | //光标至于最后
|
| | | dicCodeControls[this.CodeLenth - 1].SetSelectionEnd();
|
| | | #endif
|
| | | for (int i = 0; i < this.CodeLenth; i++)
|
| | | {
|
| | | //先移除事件
|
| | |
| | | if (dicCodeControls.ContainsKey(index + 1) == true)
|
| | | {
|
| | | dicCodeControls[index + 1].Foucs = true;
|
| | | #if Android
|
| | | //光标至于最后
|
| | | dicCodeControls[index + 1].SetSelectionEnd();
|
| | | #endif
|
| | | }
|
| | | else
|
| | | {
|
| | | #if Android
|
| | | //光标至于最后
|
| | | txtCode.SetSelectionEnd();
|
| | | #endif
|
| | | //最后一位输入完成,校验验证码
|
| | | string code = string.Empty;
|
| | | for (int i = 0; i < this.CodeLenth; i++)
|
| | |
| | | if (dicCodeControls.ContainsKey(index - 1) == true)
|
| | | {
|
| | | dicCodeControls[index - 1].Foucs = true;
|
| | | #if Android
|
| | | //光标至于最后
|
| | | dicCodeControls[index - 1].SetSelectionEnd();
|
| | | #endif
|
| | | }
|
| | | }
|
| | | }
|