private void Update() { try { this.SelectedUser.AssignedRole = this.SelectedRole; var user = component.GetUser(this.SelectedUser); component.UpdateRole(user, this.SelectedRole); PluginContext.Host.WriteStatus(StatusType.Info, Messages.Msg_RoleUpdatedFor.FormatWith(this.SelectedUser.DisplayedName)); this.Close(); } catch (Exception ex) { this.Handle.Error(ex); } }