//Register Buttton Click #region Registration /// <summary> /// <description></description> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onRegisterButtonClick(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(txtFirstName.Text) || string.IsNullOrEmpty(txtLastName.Text) || string.IsNullOrEmpty(txtUserName.Text) || string.IsNullOrEmpty(txtPassword.Text) || string.IsNullOrEmpty(txtConfPassword.Text) || string.IsNullOrEmpty(encodedImgString)) { Snackbar.Make(txtUserName, GetString(Resource.String.require_all_Details), Snackbar.LengthLong).Show(); //GlobalConst.alertMessageBox(this, "Requir", "Please Enter All the Details..!!"); } else { if (txtPassword.Text == txtConfPassword.Text) { RegisterData registerData = new RegisterData() { firstName = txtFirstName.Text.Trim(), lastName = txtLastName.Text.Trim(), userName = txtUserName.Text.Trim(), password = txtPassword.Text.Trim(), gender = rdGender.Text.Trim(), imgUrl = encodedImgString, currentLocation = current_Location }; GlobalConst.insert(registerData); Finish(); } else { Toast.MakeText(this, GetString(Resource.String.conf_password), ToastLength.Long).Show(); } } } catch (Exception ex) { Toast.MakeText(this, GetString(Resource.String.somthing_wrong), ToastLength.Long).Show(); } }