void CancelAction(object sender, EventArgs e) { if (registeredUser != null) { registeredUser.DeleteInBackground(); } SetResult(Result.Canceled); Finish(); }
void SignUpCallback(ParseUser user, ParseException e) { if (isDead) { user.DeleteInBackground(); return; } progress.Visibility = ViewStates.Invisible; if (user != null && e == null) { informativeText.Text = "Verification email sent. Waiting for confirmation..."; RefreshLoop(user); } else { SetResult(Result.Canceled); actionButton.Text = "< Go Back"; informativeText.Text = "Error: the username likely exists already"; } }