- Timestamp:
- 10/05/10 01:14:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/OKBExperimentView.cs
r4549 r4553 91 91 protected override void SetEnabledStateOfControls() { 92 92 base.SetEnabledStateOfControls(); 93 algorithmComboBox.Enabled = (Content != null) && !ReadOnly && !Locked && (algorithmComboBox.Items.Count > 0); 94 problemComboBox.Enabled = (Content != null) && !ReadOnly && !Locked && (problemComboBox.Items.Count > 0); 95 tabControl.Enabled = Content != null; 93 96 executionTimeTextBox.Enabled = Content != null; 94 97 SetEnabledStateOfExecutableButtons(); … … 100 103 algorithmComboBox.DataSource = OKBClient.Instance.Algorithms.Where(x => x.PlatformId == platform.Id).ToList(); 101 104 algorithmComboBox.DisplayMember = "Name"; 105 algorithmComboBox.SelectedIndex = -1; 102 106 problemComboBox.DataSource = OKBClient.Instance.Problems.Where(x => x.PlatformId == platform.Id).ToList(); 103 107 problemComboBox.DisplayMember = "Name"; 108 problemComboBox.SelectedIndex = -1; 104 109 } 105 110 } … … 155 160 Invoke(new EventHandler(Content_Prepared), sender, e); 156 161 else { 162 resultsViewHost.Content = Content.Results; 157 163 ReadOnly = Locked = false; 158 164 SetEnabledStateOfExecutableButtons(); … … 191 197 private void algorithmComboBox_SelectedValueChanged(object sender, System.EventArgs e) { 192 198 Algorithm algorithm = algorithmComboBox.SelectedValue as Algorithm; 193 if ((algorithm != null) && (Content != null)) { 194 Content.LoadAlgorithm(algorithm.Id); 195 } 199 if (Content != null) Content.Load(algorithm); 196 200 } 197 201 private void problemComboBox_SelectedValueChanged(object sender, System.EventArgs e) { 198 202 Problem problem = problemComboBox.SelectedValue as Problem; 199 if ((problem != null) && (Content != null)) { 200 Content.LoadProblem(problem.Id); 201 } 203 if (Content != null) Content.Load(problem); 202 204 } 203 205 private void prepareButton_Click(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.