- Timestamp:
- 08/03/18 14:38:17 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r15992 r16044 139 139 } 140 140 141 if (Content.Job != null && Content.Job.ProjectId == Guid.Empty) { 142 if (HiveClient.Instance != null && HiveClient.Instance.Projects != null && HiveClient.Instance.Projects.Count == 1) { 143 var p = HiveClient.Instance.Projects.FirstOrDefault(); 144 if (p != null && p.Id != Guid.Empty) { 145 hiveResourceSelectorDialog = new HiveResourceSelectorDialog(Content.Job.Id, Content.Job.ProjectId); 146 Content.Job.ProjectId = p.Id; 147 Content.Job.ResourceIds = HiveClient.Instance.GetAvailableResourcesForProject(p.Id).Select(x => x.Id).ToList(); 148 hiveResourceSelectorDialog.SelectedProjectId = Content.Job.ProjectId; 149 hiveResourceSelectorDialog.SelectedResourceIds = Content.Job.ResourceIds; 150 } 151 } 152 } 153 154 141 155 nameTextBox.Text = Content.Job.Name; 142 156 descriptionTextBox.Text = Content.Job.Description;
Note: See TracChangeset
for help on using the changeset viewer.