Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/18 14:38:17 (6 years ago)
Author:
jzenisek
Message:

#2839:

  • adapted icons: replaced ".PublishToWeb" with ".Save"
  • pre-select project with all resources for new jobs, if it is the only available
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r15992 r16044  
    139139          }
    140140
     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
    141155          nameTextBox.Text = Content.Job.Name;
    142156          descriptionTextBox.Text = Content.Job.Description;
Note: See TracChangeset for help on using the changeset viewer.