- Timestamp:
- 05/11/10 12:03:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding.Views/3.3/PermutationTypeView.cs
r3436 r3764 45 45 public ComparisonView() { 46 46 InitializeComponent(); 47 Caption = "PermutationType View";48 47 valueComboBox.DataSource = Enum.GetValues(typeof(PermutationTypes)); 49 48 } … … 65 64 protected override void OnContentChanged() { 66 65 base.OnContentChanged(); 67 if (Content == null) { 68 Caption = "PermutationType View"; 66 if (Content == null) 69 67 valueComboBox.Enabled = false; 70 } else { 71 Caption = Content.ToString() + " (" + Content.GetType().Name + ")"; 68 else 72 69 valueComboBox.SelectedItem = Content.Value; 73 }74 70 SetEnabledStateOfControls(); 75 71 }
Note: See TracChangeset
for help on using the changeset viewer.