Changeset 6968 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.cs
- Timestamp:
- 11/08/11 13:18:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.cs
r5834 r6968 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Windows.Forms; 24 25 using HeuristicLab.MainForm; … … 41 42 protected override void SetEnabledStateOfControls() { 42 43 base.SetEnabledStateOfControls(); 43 ImportButton.Enabled = !Locked && !ReadOnly && Content != null;44 importButton.Enabled = !Locked && !ReadOnly && Content != null; 44 45 } 45 46 … … 54 55 } 55 56 } 57 58 private void loadButton_Click(object sender, EventArgs e) { 59 if (benchmarkComboBox.SelectedItem != null) 60 Content.CreateProblemDataFromBenchmark((IDataAnalysisBenchmarkProblemDataGenerator)benchmarkComboBox.SelectedItem); 61 } 62 63 protected override void OnContentChanged() { 64 base.OnContentChanged(); 65 benchmarkComboBox.Items.Clear(); 66 benchmarkComboBox.Items.AddRange(Content.GetBenchmarkProblemDataGenerators().OrderBy(b => b.ItemName).ToArray()); 67 if (benchmarkComboBox.Items.Count > 0) 68 benchmarkComboBox.SelectedIndex = 0; 69 } 56 70 } 57 71 }
Note: See TracChangeset
for help on using the changeset viewer.