| | |
| | | Height = Application.GetRealHeight(58), |
| | | TextColor = ZigbeeColor.Current.GXCTextRed, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.TextSize, |
| | | IsBold = true |
| | | }; |
| | | bodyFrameLayout.AddChidren(errorBtn); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCButtonUnSelectedColor, |
| | | Radius = (uint)Application.GetRealHeight(127 / 2), |
| | | Enable = !string.IsNullOrEmpty(codeRow.VerificationCodeET?.Text), |
| | | IsSelected = !string.IsNullOrEmpty(codeRow.VerificationCodeET?.Text) |
| | | IsSelected = !string.IsNullOrEmpty(codeRow.VerificationCodeET?.Text), |
| | | TextSize = 16, |
| | | IsBold = true, |
| | | }; |
| | | bodyFrameLayout.AddChidren(resetBtn); |
| | | } |
| | |
| | | private void SelectPhoneOrEmail_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) |
| | | { |
| | | phoneEmailForm.SelectedPhone.IsSelected = phoneEmailForm.SelectedEmail.IsSelected = false; |
| | | phoneEmailForm.SelectedPhone.IsBold = phoneEmailForm.SelectedEmail.IsBold = false; |
| | | resetBtn.Enable = resetBtn.IsSelected = false; |
| | | errorBtn.Text = string.Empty; |
| | | (sender as Button).IsSelected = true; |
| | | (sender as Button).IsSelected = (sender as Button).IsBold = true; |
| | | if ((sender as Button).Tag.ToString() == "Phone") |
| | | { |
| | | AddPhoneOrEmailFL(accountCodeFL, "Phone"); |
| | |
| | | } |
| | | else if (stateStr == "PARAMETEROREMPTY") |
| | | { |
| | | //提供的参数错误 |
| | | errorBtn.TextID = R.MyInternationalizationString.PARAMETEROREMPTY; |
| | | } |
| | | else if (stateStr == "ACCOUNTNOEXISTS") |
| | | { |
| | | //账号不存在 |
| | | errorBtn.TextID = R.MyInternationalizationString.ACCOUNTNOEXISTS; |
| | | } |
| | | else if (stateStr == "FAIL") |
| | | { |
| | | //操作失败 |
| | | errorBtn.TextID = R.MyInternationalizationString.FAIL; |
| | | } |
| | | else if(stateStr == "NEWPASSWORDANDOLDPASSWORDEQUAL") |
| | |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.RequestServerFailed; |
| | | } |
| | | |
| | | } |
| | | else if (stateCodeStr == "PARAMETEROREMPTY") |
| | | { |
| | |
| | | //验证码错误 |
| | | errorBtn.TextID = R.MyInternationalizationString.VALIDCODEANDPHONENOEQUAL; |
| | | } |
| | | else if (stateCodeStr == "NORECORD") |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.NORECORD; |
| | | } |
| | | |
| | | else |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.RequestServerFailed; |