Changeset 7127 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.cs
- Timestamp:
- 12/05/11 17:03:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.cs
r7085 r7127 44 44 protected override void SetEnabledStateOfControls() { 45 45 base.SetEnabledStateOfControls(); 46 importButton.Enabled = !Locked && !ReadOnly && Content != null; 46 ImportButton.Enabled = !Locked && !ReadOnly && Content != null; 47 LoadButton.Enabled = !Locked && !ReadOnly && Content != null; 48 BenchmarkComboBox.Enabled = !Locked && !ReadOnly && Content != null; 47 49 } 48 50 … … 59 61 60 62 private void loadButton_Click(object sender, EventArgs e) { 61 if ( benchmarkComboBox.SelectedItem != null)62 Content.ProblemData = ((IDataAnalysisBenchmarkProblemDataGenerator) benchmarkComboBox.SelectedItem).GenerateProblemData();63 if (BenchmarkComboBox.SelectedItem != null) 64 Content.ProblemData = ((IDataAnalysisBenchmarkProblemDataGenerator)BenchmarkComboBox.SelectedItem).GenerateProblemData(); 63 65 } 64 66 65 67 protected override void OnContentChanged() { 66 68 base.OnContentChanged(); 67 benchmarkComboBox.Items.Clear();68 benchmarkComboBox.Items.AddRange(GetBenchmarkProblemDataGenerators().OrderBy(b => b.Name, new NaturalStringComparer()).ToArray());69 if ( benchmarkComboBox.Items.Count > 0)70 benchmarkComboBox.SelectedIndex = 0;69 BenchmarkComboBox.Items.Clear(); 70 BenchmarkComboBox.Items.AddRange(GetBenchmarkProblemDataGenerators().OrderBy(b => b.Name, new NaturalStringComparer()).ToArray()); 71 if (BenchmarkComboBox.Items.Count > 0) 72 BenchmarkComboBox.SelectedIndex = 0; 71 73 } 72 74
Note: See TracChangeset
for help on using the changeset viewer.