- Timestamp:
- 03/03/16 15:54:48 (9 years ago)
- 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 211 211 this.suggestedInstancesComboBox.Size = new System.Drawing.Size(322, 21); 212 212 this.suggestedInstancesComboBox.TabIndex = 0; 213 this.suggestedInstancesComboBox.SelectedIndexChanged += new System.EventHandler(this.SuggestedInstancesComboBoxOnSelectedIndexChanged); 213 214 // 214 215 // runsTabPage -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3/ExpertSystemView.cs
r13569 r13649 20 20 #endregion 21 21 22 using HeuristicLab.Common.Resources; 23 using HeuristicLab.Core.Views; 24 using HeuristicLab.MainForm; 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Optimization.Views; 22 27 using System; 23 28 using System.ComponentModel; … … 26 31 using System.Windows.Forms; 27 32 using 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;33 33 34 34 namespace HeuristicLab.OptimizationExpertSystem.Views { … … 104 104 kbViewHost.Content = Content.KnowledgeBase; 105 105 problemInstancesView.Content = Content.ProblemInstances; 106 algorithmViewHost.Content = Content.CurrentResult; 106 107 } 107 108 } finally { SuppressEvents = false; } … … 161 162 break; 162 163 case "ProblemInstances": problemInstancesView.Content = Content.ProblemInstances; break; 164 case "CurrentResult": algorithmViewHost.Content = Content.CurrentResult; break; 163 165 } 164 166 } finally { SuppressEvents = false; } … … 231 233 232 234 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); 238 237 } 239 238 … … 268 267 } 269 268 } 269 270 private void SuggestedInstancesComboBoxOnSelectedIndexChanged(object sender, EventArgs e) { 271 SetEnabledStateOfControls(); 272 } 270 273 } 271 274 } -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Views/3.3/ExpertSystemView.resx
r13551 r13649 121 121 <value>17, 17</value> 122 122 </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>126 123 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 127 124 <value>140, 17</value>
Note: See TracChangeset
for help on using the changeset viewer.