void BtNext_Click(object sender, EventArgs e) { if (StringCheckUtil.isEmpty(txtEmail.EditText)) { return; } if (!StringCheckUtil.isEmailAddress(txtEmail.EditText)) { return; } if (StringCheckUtil.isEmpty(txtPassword.EditText)) { return; } if (StringCheckUtil.isLength(txtPassword.EditText, 8)) { return; } ParentActivity.RegisterModel.EMAIL = txtEmail.EditText.Text; ParentActivity.RegisterModel.USERPASSWORD = txtPassword.EditText.Text; ParentActivity.RegisterModel.IMEI = PhoneIMEI.GetImei(ParentActivity); ParentActivity.SetFragment(RegisterActvity.PROFILE_FRAGMENT); }
void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (string.Equals(e.PropertyName, nameof(LoginViewModel.IsBusy))) { if (ParentActivity.ViewModel.IsBusy) { ShowLoadingDialog("Submit E-mail"); } else { HideLoadingDialog(); } } else if (string.Equals(e.PropertyName, nameof(LoginViewModel.AskPasswordResult))) { if (ParentActivity.ViewModel.AskPasswordResult != null && ParentActivity.ViewModel.AskPasswordResult.RESULT) { ParentActivity.SetFragment(ForgotPasswordActivity.NEW_PASSWORD_FRAGMENT); } else { DialogUtils.ShowOKDialog(this.ParentActivity, @"Warning", @"Failed to submit E-mail."); } } }
void FabNext_Click(object sender, EventArgs e) { ParentActivity.SetFragment(AddGroupActivity.FragmentSetGroupName); }
void BtNext_Click(object sender, EventArgs e) { ParentActivity.SetFragment(RegisterActvity.PRIVACY_FRAGMENT); }
void BtAgree_Click(object sender, EventArgs e) { //ParentActivity.RegisterModel.AGREETERM = true; ParentActivity.SetFragment(RegisterActvity.EMAIL_FRAGMENT); }
void BtHaveCode_Click(object sender, EventArgs e) { ParentActivity.SetFragment(ForgotPasswordActivity.NEW_PASSWORD_FRAGMENT); }