Changeset 16060 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/MenuItems/RunInHiveMenuItem.cs
- Timestamp:
- 08/07/18 15:34:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/MenuItems/RunInHiveMenuItem.cs
r16057 r16060 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using System.Threading; 26 using System.Windows.Forms; 27 using HeuristicLab.Clients.Hive.JobManager.Views; 25 28 using HeuristicLab.Core; 26 29 using HeuristicLab.MainForm; … … 28 31 using HeuristicLab.Optimizer; 29 32 using HeuristicLab.PluginInfrastructure; 30 using HeuristicLab.Clients.Hive.JobManager.Views;31 using System.Windows.Forms;32 using System.Linq;33 33 34 34 namespace HeuristicLab.Clients.Hive.JobManager { … … 85 85 task.ItemTask.ComputeInParallel = content is Experiment || content is BatchRun; 86 86 87 if (HiveClient.Instance.Projects.Count == 1) { 88 var project = HiveClient.Instance.Projects.FirstOrDefault(); 89 if (project != null && project.Id != Guid.Empty) 90 rJob.Job.ProjectId = project.Id; 91 } 87 92 88 93 var hiveResourceSelectorDialog = new HiveResourceSelectorDialog(rJob.Job.Id, rJob.Job.ProjectId);
Note: See TracChangeset
for help on using the changeset viewer.