| | |
| | | #endregion |
| | | |
| | | #region 局部变量列表 |
| | | /// <summary> |
| | | /// 账号类型 |
| | | /// 0:手机 |
| | | /// 1:邮箱 |
| | | /// </summary> |
| | | int accountType = 0; |
| | | ///// <summary> |
| | | ///// 账号类型 |
| | | ///// 0:手机 |
| | | ///// 1:邮箱 |
| | | ///// </summary> |
| | | //int accountType = 0; |
| | | /// <summary> |
| | | /// 手机号码是否有效 |
| | | /// </summary> |
| | |
| | | /// 0:手机 |
| | | /// 1:邮箱 |
| | | /// </summary> |
| | | int registerType; |
| | | int registerType = 0; |
| | | /// <summary> |
| | | /// 手机区号 |
| | | /// </summary> |
| | |
| | | |
| | | string registerPhone; |
| | | string registerEmail; |
| | | /// <summary> |
| | | /// 是否点击了返回,用于屏蔽EditText失去焦点检测事件 |
| | | /// </summary> |
| | | bool isHitBack; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | |
| | | }; |
| | | AddChidren(bodyView); |
| | | |
| | | //2020-12-22 增加点击隐藏键盘事件 |
| | | bodyView.MouseDownEventHandler += (sender, e) => { |
| | | Application.HideSoftInput(); |
| | | }; |
| | | |
| | | pm = new HttpServerRequest(); |
| | | } |
| | | |
| | |
| | | |
| | | public void ShowDialog() |
| | | { |
| | | new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView(); |
| | | Action backAction = () => |
| | | { |
| | | isHitBack = true; |
| | | //2020-12-22 增加点击隐藏键盘事件 |
| | | Application.HideSoftInput(); |
| | | }; |
| | | |
| | | new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView(backAction); |
| | | //new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(StringId.Register)); |
| | | |
| | | #region 注册方式选择 |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | }; |
| | | bodyView.AddChidren(btnEmailLogin); |
| | | if(Language.CurrentLanguage!= "Chinese") |
| | | { |
| | | btnPhoneLogin.Width = Application.GetRealWidth(180); |
| | | btnEmailLogin.Width = Application.GetRealWidth(180); |
| | | } |
| | | #endregion |
| | | |
| | | #region 服务器选择 |
| | |
| | | }; |
| | | btnGlobalRoaming.MouseUpEventHandler += eHandler; |
| | | |
| | | if (accountType == 0) |
| | | if (registerType == 0) |
| | | { |
| | | accountView.AddChidren(btnGlobalRoaming); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(20), |
| | | UnSelectedImagePath = "LoginIcon/AccountIcon.png", |
| | | }; |
| | | if (accountType == 1) |
| | | if (registerType == 1) |
| | | { |
| | | accountView.AddChidren(btnAccountIcon); |
| | | } |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(StringId.PlsEntryVerificationCode), |
| | | IsNumberKeyboardType = true |
| | | }; |
| | | verificationCodeView.AddChidren(etVerificationCode); |
| | | |