Changeset 8692 for trunk/sources
- Timestamp:
- 09/25/12 10:15:59 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r8691 r8692 534 534 RunCollection runs = new RunCollection(); 535 535 536 foreach (HiveTask subTask in job.HiveTasks) {537 GetAllRunsFromHiveTask(runs, subTask);536 foreach (HiveTask hiveTask in job.HiveTasks) { 537 TaskUtil.GetAllRunsFromHiveTask(runs, hiveTask); 538 538 } 539 539 return runs; 540 540 } else { 541 541 return null; 542 }543 }544 545 private void GetAllRunsFromHiveTask(RunCollection runs, HiveTask task) {546 foreach (HiveTask subTask in task.ChildHiveTasks) {547 GetAllRunsFromHiveTask(runs, subTask);548 }549 550 if (task.ChildHiveTasks.Count == 0) {551 if (task is OptimizerHiveTask) {552 OptimizerHiveTask ohTask = task as OptimizerHiveTask;553 runs.AddRange(ohTask.ItemTask.Item.Runs);554 }555 542 } 556 543 } -
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r8186 r8692 25 25 using HeuristicLab.MainForm; 26 26 using HeuristicLab.MainForm.WindowsForms; 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.PluginInfrastructure; 28 29 … … 53 54 protected override void Job_ItemChanged(object sender, EventArgs e) { 54 55 if (Content != null && Content.Task != null && Content.ItemTask.Item != null) { 55 runCollectionViewHost.Content = Content.ItemTask.Item.Runs; 56 RunCollection runs = new RunCollection(); 57 TaskUtil.GetAllRunsFromHiveTask(runs, Content); 58 runCollectionViewHost.Content = runs; 56 59 } else { 57 60 runCollectionViewHost.Content = null; -
trunk/sources/HeuristicLab.Clients.Hive/3.3/HeuristicLab.Clients.Hive-3.3.csproj
r8600 r8692 130 130 <Compile Include="StateLogList.cs" /> 131 131 <Compile Include="StateLogListList.cs" /> 132 <Compile Include="Util\TaskUtil.cs" /> 132 133 <None Include="app.config"> 133 134 <SubType>Designer</SubType> … … 249 250 </PropertyGroup> 250 251 <PropertyGroup> 251 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)252 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 252 253 set ProjectDir=$(ProjectDir) 253 254 set SolutionDir=$(SolutionDir) 254 255 set Outdir=$(Outdir) 255 256 call PreBuildEvent.cmd</PreBuildEvent> 256 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">257 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 257 258 export ProjectDir=$(ProjectDir) 258 259 export SolutionDir=$(SolutionDir)
Note: See TracChangeset
for help on using the changeset viewer.