Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/11 01:30:44 (13 years ago)
Author:
cneumuel
Message:

#1215

  • made all IAlgorithm types compatible to be loaded into MetaOptimization.
  • valid problem types are now automatically set
Location:
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
Files:
3 edited

Legend:

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

    r5328 r5337  
    7272
    7373          if (dlgResult == DialogResult.OK) {
    74             EngineAlgorithm algorithm = Content.Algorithm;
     74            IAlgorithm algorithm = Content.Algorithm;
    7575            if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First();
    7676            Experiment experiment;
     
    9393      Type type = e.Data.GetData("Type") as Type;
    9494      if ((type != null) && (Content.AlgorithmType.ValidTypes.Contains(type))) {
    95         EngineAlgorithm algorithm = e.Data.GetData("Value") as EngineAlgorithm;
    96         if (algorithm.Problem == null || Content.ProblemType.ValidTypes.Contains(algorithm.Problem.GetType())) {
     95        IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm;
     96        if (algorithm != null && algorithm.Problem == null || Content.ProblemType.ValidTypes.Contains(algorithm.Problem.GetType())) {
    9797          e.Effect = DragDropEffects.Copy;
    9898        }
     
    101101    protected void parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) {
    102102      if (e.Effect != DragDropEffects.None) {
    103         EngineAlgorithm algorithm = e.Data.GetData("Value") as EngineAlgorithm;
     103        IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm;
    104104        Content.ImportAlgorithm(algorithm);
    105105      }
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ObjectSelectorDialog.Designer.cs

    r5110 r5337  
    4646      this.itemsListView.MultiSelect = false;
    4747      this.itemsListView.Name = "itemsListView";
    48       this.itemsListView.Size = new System.Drawing.Size(387, 501);
     48      this.itemsListView.Size = new System.Drawing.Size(653, 360);
    4949      this.itemsListView.TabIndex = 2;
    5050      this.itemsListView.UseCompatibleStateImageBehavior = false;
     
    7272      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    7373      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    74       this.cancelButton.Location = new System.Drawing.Point(324, 519);
     74      this.cancelButton.Location = new System.Drawing.Point(590, 378);
    7575      this.cancelButton.Name = "cancelButton";
    7676      this.cancelButton.Size = new System.Drawing.Size(75, 23);
     
    8484      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
    8585      this.okButton.Enabled = false;
    86       this.okButton.Location = new System.Drawing.Point(243, 519);
     86      this.okButton.Location = new System.Drawing.Point(509, 378);
    8787      this.okButton.Name = "okButton";
    8888      this.okButton.Size = new System.Drawing.Size(75, 23);
     
    9898      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    9999      this.CancelButton = this.cancelButton;
    100       this.ClientSize = new System.Drawing.Size(411, 554);
     100      this.ClientSize = new System.Drawing.Size(677, 413);
    101101      this.Controls.Add(this.cancelButton);
    102102      this.Controls.Add(this.okButton);
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ObjectSelectorDialog.resx

    r4516 r5337  
    113113  </resheader>
    114114  <resheader name="reader">
    115     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     115    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    116116  </resheader>
    117117  <resheader name="writer">
    118     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120120</root>
Note: See TracChangeset for help on using the changeset viewer.