Changeset 6725 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/NewExperimentTreeNodeAction.cs
- Timestamp:
- 09/08/11 16:38:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/NewExperimentTreeNodeAction.cs
r6382 r6725 25 25 26 26 namespace HeuristicLab.Clients.Hive { 27 public class NewExperimentTreeNodeAction : IItemTreeNodeAction<Hive Job> {28 private ItemCollection<Hive Job> hiveJobs;27 public class NewExperimentTreeNodeAction : IItemTreeNodeAction<HiveTask> { 28 private ItemCollection<HiveTask> hiveJobs; 29 29 30 public NewExperimentTreeNodeAction(ItemCollection<Hive Job> hiveJobs) {30 public NewExperimentTreeNodeAction(ItemCollection<HiveTask> hiveJobs) { 31 31 this.hiveJobs = hiveJobs; 32 32 } … … 40 40 } 41 41 42 public void Execute(Hive Job item, HiveJobparentItem) {42 public void Execute(HiveTask item, HiveTask parentItem) { 43 43 if (item != null) { 44 var experiment = item.Item Job.Item as Experiment;44 var experiment = item.ItemTask.Item as Experiment; 45 45 experiment.Optimizers.Add(new Experiment()); 46 46 } else { 47 hiveJobs.Add(new OptimizerHive Job(new Experiment()));47 hiveJobs.Add(new OptimizerHiveTask(new Experiment())); 48 48 } 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.