Changeset 17226 for branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs
- Timestamp:
- 08/29/19 15:57:35 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive.Administrator
- Property svn:mergeinfo changed
/branches/2435-alglib_3_15/HeuristicLab.Clients.Hive.Administrator (added) merged: 17034 /trunk/HeuristicLab.Clients.Hive.Administrator merged: 17037,17180,17184,17223
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs
r16723 r17226 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2019Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 95 95 descriptionTextBox.Text = Content.Description; 96 96 97 ownerComboBox.SelectedIndexChanged -= ownerComboBox_SelectedIndexChanged;98 97 if (AccessClient.Instance.UsersAndGroups != null) { 99 98 var users = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>(); … … 103 102 ownerComboBox.SelectedItem = users.FirstOrDefault(x => x.Id == projectOwnerId); 104 103 } 105 ownerComboBox.SelectedIndexChanged += ownerComboBox_SelectedIndexChanged;106 104 107 105 createdTextBox.Text = Content.DateCreated.ToString("ddd, dd.MM.yyyy, HH:mm:ss"); … … 175 173 var users = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>(); 176 174 if (Content != null && !Content.ParentProjectId.HasValue) users = users.Where(x => x.Roles.Select(y => y.Name).Contains(HiveRoles.Administrator)); 175 var projectOwnerId = Content != null ? Content.OwnerUserId : (Guid?)null; 177 176 ownerComboBox.DataSource = users.OrderBy(x => x.UserName).ToList(); 177 ownerComboBox.SelectedItem = projectOwnerId.HasValue ? users.FirstOrDefault(x => x.Id == projectOwnerId) : null; 178 178 ownerComboBox.SelectedIndexChanged += ownerComboBox_SelectedIndexChanged; 179 179 });
Note: See TracChangeset
for help on using the changeset viewer.