Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/16 15:54:48 (8 years ago)
Author:
abeham
Message:

#2457: fixed bugs in suggestions

Location:
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3/ExpertSystemView.Designer.cs

    r13561 r13649  
    211211      this.suggestedInstancesComboBox.Size = new System.Drawing.Size(322, 21);
    212212      this.suggestedInstancesComboBox.TabIndex = 0;
     213      this.suggestedInstancesComboBox.SelectedIndexChanged += new System.EventHandler(this.SuggestedInstancesComboBoxOnSelectedIndexChanged);
    213214      //
    214215      // runsTabPage
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3/ExpertSystemView.cs

    r13569 r13649  
    2020#endregion
    2121
     22using HeuristicLab.Common.Resources;
     23using HeuristicLab.Core.Views;
     24using HeuristicLab.MainForm;
     25using HeuristicLab.Optimization;
     26using HeuristicLab.Optimization.Views;
    2227using System;
    2328using System.ComponentModel;
     
    2631using System.Windows.Forms;
    2732using System.Windows.Forms.DataVisualization.Charting;
    28 using HeuristicLab.Common.Resources;
    29 using HeuristicLab.Core.Views;
    30 using HeuristicLab.MainForm;
    31 using HeuristicLab.Optimization;
    32 using HeuristicLab.Optimization.Views;
    3333
    3434namespace HeuristicLab.OptimizationExpertSystem.Views {
     
    104104          kbViewHost.Content = Content.KnowledgeBase;
    105105          problemInstancesView.Content = Content.ProblemInstances;
     106          algorithmViewHost.Content = Content.CurrentResult;
    106107        }
    107108      } finally { SuppressEvents = false; }
     
    161162            break;
    162163          case "ProblemInstances": problemInstancesView.Content = Content.ProblemInstances; break;
     164          case "CurrentResult": algorithmViewHost.Content = Content.CurrentResult; break;
    163165        }
    164166      } finally { SuppressEvents = false; }
     
    231233
    232234    private void AlgorithmStartButtonOnClick(object sender, EventArgs e) {
    233       var selectedInstance = (IAlgorithm)suggestedInstancesComboBox.SelectedItem;
    234       var clone = (IAlgorithm)selectedInstance.Clone();
    235       clone.Prepare(true);
    236       clone.Start();
    237       algorithmViewHost.Content = clone.Results;
     235      if (suggestedInstancesComboBox.SelectedIndex >= 0)
     236        Content.StartAlgorithmAsync(suggestedInstancesComboBox.SelectedIndex);
    238237    }
    239238
     
    268267      }
    269268    }
     269
     270    private void SuggestedInstancesComboBoxOnSelectedIndexChanged(object sender, EventArgs e) {
     271      SetEnabledStateOfControls();
     272    }
    270273  }
    271274}
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3/ExpertSystemView.resx

    r13551 r13649  
    121121    <value>17, 17</value>
    122122  </metadata>
    123   <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124     <value>17, 17</value>
    125   </metadata>
    126123  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    127124    <value>140, 17</value>
Note: See TracChangeset for help on using the changeset viewer.