| | |
| | | { |
| | | phoneEmailForm.SelectedPhone.IsSelected = phoneEmailForm.SelectedEmail.IsSelected = false; |
| | | resetBtn.Enable = resetBtn.IsSelected = false; |
| | | errorBtn.Text = string.Empty; |
| | | (sender as Button).IsSelected = true; |
| | | if ((sender as Button).Tag.ToString() == "Phone") |
| | | { |
| | |
| | | /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> |
| | | private void Account_TextChange(object sender, string mouseEventArgs) |
| | | { |
| | | errorBtn.Text = ""; |
| | | errorBtn.Text = string.Empty; |
| | | |
| | | if ((sender as EditText).Text.Trim().Length > 0) |
| | | { |
| | |
| | | /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> |
| | | private void Code_TextChange(object sender, string mouseEventArgs) |
| | | { |
| | | errorBtn.Text = ""; |
| | | errorBtn.Text = string.Empty; |
| | | if ((sender as EditText).Text.Trim().Length > 0) |
| | | { |
| | | resetBtn.Enable = resetBtn.IsSelected = true; |
| | |
| | | errorBtn.TextID = R.MyInternationalizationString.SENDFAIL; |
| | | (sender as Button).Enable = (sender as Button).IsSelected = true; |
| | | } |
| | | else if (stateCodeStr == "EXIST") |
| | | else if (stateCodeStr == "ACCOUNTNOEXISTS") |
| | | { |
| | | //账号存在 |
| | | errorBtn.TextID = R.MyInternationalizationString.AccountHasBeenRegistered; |
| | | //账号不存在 |
| | | errorBtn.TextID = R.MyInternationalizationString.ACCOUNTNOEXISTS; |
| | | (sender as Button).Enable = (sender as Button).IsSelected = true; |
| | | } |
| | | else |
| | |
| | | } |
| | | 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.NEWPASSWORDANDOLDPASSWORDEQUAL; |
| | | } |
| | | else |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.RequestServerFailed; |
| | | } |
| | | |
| | | } |
| | | else if (stateCodeStr == "PARAMETEROREMPTY") |
| | | { |