/// <summary> /// Called when add button is pressed. /// </summary> /// <param name="permission">The permission.</param> public void OnAddPermission(PermissionPo permission) { Permissions.Add(permission); TransformeAvailablePermissions(); NotifyOfPropertyChange(() => AvailablePermissions); NotifyOfPropertyChange(() => Permissions); }
/// <summary> /// Called when remove button is pressed. /// </summary> /// <param name="permission">The permission.</param> public void OnRemovePermission(PermissionPo permission) { Permissions.Remove(Permissions.First(x => x.Id == permission.Id)); TransformeAvailablePermissions(); NotifyOfPropertyChange(() => AvailablePermissions); NotifyOfPropertyChange(() => Permissions); }