Changeset 8031 for trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
- Timestamp:
- 06/18/12 11:00:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r7956 r8031 65 65 ShowInstanceLoad(dataDescriptors.Count() > 0); 66 66 instancesComboBox.DataSource = dataDescriptors; 67 instancesComboBox.SelectedIndex = -1; 67 68 } 68 69 } … … 83 84 base.SetEnabledStateOfControls(); 84 85 instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null; 85 loadButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null ;86 loadButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null && instancesComboBox.SelectedIndex >= 0; 86 87 } 87 88 … … 102 103 comboBox.Items.Clear(); 103 104 } 105 106 private void instancesComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { 107 SetEnabledStateOfControls(); 108 } 104 109 } 105 110 }
Note: See TracChangeset
for help on using the changeset viewer.