| | |
| | | { |
| | | #region 控件列表 |
| | | /// <summary> |
| | | /// 等待提示 |
| | | /// </summary> |
| | | Loading waitPage; |
| | | /// <summary> |
| | | /// 当前界面 |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | |
| | | /// 选择手机登录按钮 |
| | | /// </summary> |
| | | Button btnPhoneLogin; |
| | | /// <summary> |
| | | /// 登录类型选中提示线 |
| | | /// </summary> |
| | | Button btnChooseBottomLine; |
| | | /// <summary> |
| | | /// 选择邮箱登录按钮 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 修改按钮 |
| | | /// </summary> |
| | | Button btnRegister; |
| | | Button btnReset; |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// 1:邮箱 |
| | | /// </summary> |
| | | int accountType = 0; |
| | | /// <summary> |
| | | /// 手机号码是否有效 |
| | | /// </summary> |
| | | bool ValidMobileNumber = false; |
| | | /// <summary> |
| | | /// 密码是否有效 |
| | | /// </summary> |
| | | bool ValidPassword = false; |
| | | /// <summary> |
| | | /// 服务器请求对象 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | int registerType; |
| | | #endregion |
| | | public ForgetPasswordPage() |
| | | public ForgetPasswordPage(Action<string> action) |
| | | { |
| | | callbackAction = action; |
| | | bodyView = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.BackgroundColor, |
| | |
| | | |
| | | public void ShowDialog() |
| | | { |
| | | new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(InternationalizationString.Register)); |
| | | new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(InternationalizationString.ForgetPassword)); |
| | | |
| | | #region 修改方式选择 |
| | | btnPhoneLogin = new Button() |
| | |
| | | TextSize = CSS_FontSize.EmphasisFontSize_Secondary, |
| | | }; |
| | | bodyView.AddChidren(btnPhoneLogin); |
| | | |
| | | btnChooseBottomLine = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(46), |
| | | Height = Application.GetRealHeight(4), |
| | | X = btnPhoneLogin.X + Application.GetRealWidth(27), |
| | | Y = btnPhoneLogin.Bottom, |
| | | Radius = (uint)Application.GetRealHeight(2), |
| | | BorderWidth = 0, |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | }; |
| | | bodyView.AddChidren(btnChooseBottomLine); |
| | | |
| | | btnEmailLogin = new Button() |
| | | { |
| | |
| | | { |
| | | accountView.AddChidren(btnGlobalRoaming); |
| | | } |
| | | |
| | | //btnDividingLineVertical_AccountView = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(65), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = 1, |
| | | // Height = Application.GetRealHeight(20), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}; |
| | | //accountView.AddChidren(btnDividingLineVertical_AccountView); |
| | | |
| | | etAccount = new EditText() |
| | | { |
| | |
| | | repeatPasswordView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(279), |
| | | Y = Application.GetRealHeight(335), |
| | | Width = Application.GetRealWidth(335), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | |
| | | #endregion |
| | | |
| | | btnRegister = new Button() |
| | | btnReset = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(421), |
| | |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | BackgroundColor = CSS_Color.PromptingColor1, |
| | | TextID = InternationalizationString.Register, |
| | | TextID = InternationalizationString.ConfirmReset, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | bodyView.AddChidren(btnRegister); |
| | | bodyView.AddChidren(btnReset); |
| | | |
| | | //LoadEventList(); |
| | | LoadEventList(); |
| | | } |
| | | } |
| | | } |