private void ChangeUsernameBtn_Click(object sender, EventArgs e) { SimpleFieldDialog simpleFieldDialog = new SimpleFieldDialog("Enter new username:"******"new username"); simpleFieldDialog.PositiveHandler += ChangeUsername; simpleFieldDialog.FinalValidationHandler = ValidateUsername; simpleFieldDialog.Show(FragmentManager, "SimpleFieldDialog"); }
private void ChangePasswordBtn_Click(object sender, EventArgs e) { SimpleFieldDialog simpleFieldDialog = new SimpleFieldDialog("Enter new password:"******"new password"); simpleFieldDialog.InputType = Android.Text.InputTypes.TextVariationPassword; simpleFieldDialog.PositiveHandler += ChangePassword; simpleFieldDialog.FinalValidationHandler = ValidatePassword; simpleFieldDialog.Show(FragmentManager, "SimpleFieldDialog"); }