예제 #1
0
        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);
        }
예제 #2
0
 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);
 }
예제 #4
0
 void BtNext_Click(object sender, EventArgs e)
 {
     ParentActivity.SetFragment(RegisterActvity.PRIVACY_FRAGMENT);
 }
예제 #5
0
 void BtAgree_Click(object sender, EventArgs e)
 {
     //ParentActivity.RegisterModel.AGREETERM = true;
     ParentActivity.SetFragment(RegisterActvity.EMAIL_FRAGMENT);
 }
예제 #6
0
 void BtHaveCode_Click(object sender, EventArgs e)
 {
     ParentActivity.SetFragment(ForgotPasswordActivity.NEW_PASSWORD_FRAGMENT);
 }