Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/11 11:20:28 (13 years ago)
Author:
cneumuel
Message:

#1215

  • made MetaOptimizationProblem storable
  • fixed remove item exception in ValueConfigurationCheckedItemCollectionView
  • added possibility to select engine in CreateExperimentDialog
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs

    r5337 r5654  
    11using System;
    2 using System.Collections.Generic;
    3 using System.ComponentModel;
    4 using System.Drawing;
    5 using System.Data;
    62using System.Linq;
    7 using System.Text;
     3using System.Windows.Forms;
     4using HeuristicLab.Core;
    85using HeuristicLab.MainForm;
     6using HeuristicLab.Optimization;
    97using HeuristicLab.Optimization.Views;
    10 using HeuristicLab.Optimization;
    11 using System.Windows.Forms;
     8using HeuristicLab.PluginInfrastructure;
    129
    1310namespace HeuristicLab.Problems.MetaOptimization.Views {
     
    6865        }
    6966        if (result == System.Windows.Forms.DialogResult.OK) {
    70           CreateExperimentDialog dlg = new CreateExperimentDialog();
     67          CreateExperimentDialog dlg = new CreateExperimentDialog(ApplicationManager.Manager.GetInstances<IEngine>(), typeof(SequentialEngine.SequentialEngine));
    7168          DialogResult dlgResult = dlg.ShowDialog();
    7269
    7370          if (dlgResult == DialogResult.OK) {
    74             IAlgorithm algorithm = Content.Algorithm;
     71            var algorithm = (EngineAlgorithm)Content.Algorithm.Clone();
    7572            if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First();
     73            algorithm.Engine = (IEngine)dlg.Engine.Clone();
    7674            Experiment experiment;
    7775
     
    8987    #endregion
    9088
    91     protected void parameterCollectionView_DragEnterOver(object sender, System.Windows.Forms.DragEventArgs e) {
     89    private void parameterCollectionView_DragEnterOver(object sender, System.Windows.Forms.DragEventArgs e) {
    9290      e.Effect = DragDropEffects.None;
    9391      Type type = e.Data.GetData("Type") as Type;
     
    9997      }
    10098    }
    101     protected void parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) {
     99    private void parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) {
    102100      if (e.Effect != DragDropEffects.None) {
    103101        IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm;
Note: See TracChangeset for help on using the changeset viewer.