Changeset 5654 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
- Timestamp:
- 03/10/11 11:20:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
r5337 r5654 1 1 using System; 2 using System.Collections.Generic;3 using System.ComponentModel;4 using System.Drawing;5 using System.Data;6 2 using System.Linq; 7 using System.Text; 3 using System.Windows.Forms; 4 using HeuristicLab.Core; 8 5 using HeuristicLab.MainForm; 6 using HeuristicLab.Optimization; 9 7 using HeuristicLab.Optimization.Views; 10 using HeuristicLab.Optimization; 11 using System.Windows.Forms; 8 using HeuristicLab.PluginInfrastructure; 12 9 13 10 namespace HeuristicLab.Problems.MetaOptimization.Views { … … 68 65 } 69 66 if (result == System.Windows.Forms.DialogResult.OK) { 70 CreateExperimentDialog dlg = new CreateExperimentDialog( );67 CreateExperimentDialog dlg = new CreateExperimentDialog(ApplicationManager.Manager.GetInstances<IEngine>(), typeof(SequentialEngine.SequentialEngine)); 71 68 DialogResult dlgResult = dlg.ShowDialog(); 72 69 73 70 if (dlgResult == DialogResult.OK) { 74 IAlgorithm algorithm = Content.Algorithm;71 var algorithm = (EngineAlgorithm)Content.Algorithm.Clone(); 75 72 if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First(); 73 algorithm.Engine = (IEngine)dlg.Engine.Clone(); 76 74 Experiment experiment; 77 75 … … 89 87 #endregion 90 88 91 pr otectedvoid parameterCollectionView_DragEnterOver(object sender, System.Windows.Forms.DragEventArgs e) {89 private void parameterCollectionView_DragEnterOver(object sender, System.Windows.Forms.DragEventArgs e) { 92 90 e.Effect = DragDropEffects.None; 93 91 Type type = e.Data.GetData("Type") as Type; … … 99 97 } 100 98 } 101 pr otectedvoid parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) {99 private void parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { 102 100 if (e.Effect != DragDropEffects.None) { 103 101 IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm;
Note: See TracChangeset
for help on using the changeset viewer.