Changeset 15580 for branches/HiveProjectManagement
- Timestamp:
- 01/08/18 12:45:15 (7 years ago)
- Location:
- branches/HiveProjectManagement
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs
r15576 r15580 74 74 idTextBox.ReadOnly = !enabled; 75 75 storeButton.Enabled = enabled; 76 refreshableLightweightUserView.Enabled = enabled;77 //refreshableLightweightUserView.Locked = !enabled;76 //refreshableLightweightUserView.Enabled = enabled; 77 refreshableLightweightUserView.Locked = !enabled; 78 78 //refreshableLightweightUserView.ReadOnly = !enabled; 79 79 } … … 102 102 103 103 private void Content_Refreshing(object sender, EventArgs e) { 104 storeButton.Enabled = false;104 if (!Locked) storeButton.Enabled = false; 105 105 } 106 106 107 107 private void refreshableLightweightUserView_StorableStateChanged(object sender, EventArgs e) { 108 storeButton.Enabled = true;108 if (!Locked) storeButton.Enabled = true; 109 109 } 110 110 } -
branches/HiveProjectManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserView.cs
r14185 r15580 59 59 base.SetEnabledStateOfControls(); 60 60 this.showDetailsCheckBox.Enabled = false; 61 bool enabled = Content != null && !Locked; 62 addButton.Enabled = enabled; 63 removeButton.Enabled = enabled; 64 moveDownButton.Enabled = enabled; 65 moveUpButton.Enabled = enabled; 61 66 } 62 67 -
branches/HiveProjectManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserView.cs
r14185 r15580 58 58 } 59 59 60 protected override void SetEnabledStateOfControls() { 61 base.SetEnabledStateOfControls(); 62 refreshButton.Enabled = FetchSelectedUsers != null && Content != null; 63 lightweightUserView.Locked = Locked; 64 } 65 60 66 protected override void RefreshData() { 61 67 Action completeRefreshAction = new Action(delegate { … … 79 85 if (lightweightUserView.Content != null) OnStorableStateChanged(); 80 86 } 81 }82 83 protected override void SetEnabledStateOfControls() {84 base.SetEnabledStateOfControls();85 refreshButton.Enabled = FetchSelectedUsers != null && Content != null;86 87 } 87 88 -
branches/HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs
r15576 r15580 44 44 private readonly Dictionary<Guid, HashSet<UserGroupBase>> userGroupDescendants = new Dictionary<Guid, HashSet<UserGroupBase>>(); 45 45 46 private IEnumerable<UserGroupBase> addedPermissions; 47 private IEnumerable<UserGroupBase> removedPermissions; 48 private IEnumerable<UserGroupBase> addedIncludes; 49 private IEnumerable<UserGroupBase> removedIncludes; 50 46 51 private readonly Color addedAssignmentColor = Color.FromArgb(255, 87, 191, 193); // #57bfc1 47 52 private readonly Color removedAssignmentColor = Color.FromArgb(255, 236, 159, 72); // #ec9f48 … … 215 220 216 221 private UserGroupBase BuildPermissionsList(IEnumerable<UserGroupBase> usersAndGroups) { 222 addedPermissions = newAssignedPermissions.Except(assignedPermissions); 223 removedPermissions = assignedPermissions.Except(newAssignedPermissions); 224 addedIncludes = newInheritedPermissions.Except(inheritedPermissions); 225 removedIncludes = inheritedPermissions.Except(newInheritedPermissions); 226 217 227 treeView.Nodes.Clear(); 218 228 if (!usersAndGroups.Any()) return null; … … 259 269 260 270 private void BuildNode(UserGroupBase ug, TreeNode node) { 261 var addedPermissions = newAssignedPermissions.Except(assignedPermissions);262 var removedPermissions = assignedPermissions.Except(newAssignedPermissions);263 var addedIncludes = newInheritedPermissions.Except(inheritedPermissions);264 var removedIncludes = inheritedPermissions.Except(newInheritedPermissions);265 271 266 272 if (newAssignedPermissions.Contains(ug)) { -
branches/HiveProjectManagement/HeuristicLab.Services.Hive/3.3/HiveService.cs
r15577 r15580 861 861 // remove project permissions 862 862 if(reassignCascading) { 863 p. AssignedProjectResources.Clear();863 p.ProjectPermissions.Clear(); 864 864 } else { 865 865 foreach(var item in p.ProjectPermissions.ToList().Where(x => removedPermissions.Contains(x.GrantedUserId))) {
Note: See TracChangeset
for help on using the changeset viewer.