Changeset 3764 for trunk/sources/HeuristicLab.Parameters.Views/3.3
- Timestamp:
- 05/11/10 12:03:25 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Parameters.Views/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters.Views/3.3/ConstrainedValueParameterView.cs
r3566 r3764 53 53 public ConstrainedValueParameterView() { 54 54 InitializeComponent(); 55 Caption = "ConstrainedValueParameter";56 55 valueComboBoxItems = new List<T>(); 57 56 } … … 84 83 base.OnContentChanged(); 85 84 if (Content == null) { 86 Caption = "ConstrainedValueParameter";87 85 viewHost.Content = null; 88 86 FillValueComboBox(); 89 87 } else { 90 Caption = Content.Name + " (" + Content.GetType().Name + ")";91 88 FillValueComboBox(); 92 89 viewHost.ViewType = null; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/LookupParameterView.cs
r3566 r3764 49 49 public LookupParameterView() { 50 50 InitializeComponent(); 51 Caption = "LookupParameter";52 51 } 53 52 … … 72 71 protected override void OnContentChanged() { 73 72 base.OnContentChanged(); 74 if (Content == null) { 75 Caption = "LookupParameter"; 73 if (Content == null) 76 74 actualNameTextBox.Text = "-"; 77 } else { 78 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 75 else 79 76 actualNameTextBox.Text = Content.ActualName; 80 } 77 81 78 SetEnabledStateOfControls(); 82 79 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ParameterView.cs
r3566 r3764 48 48 public ParameterView() { 49 49 InitializeComponent(); 50 Caption = "Parameter";51 50 } 52 51 53 52 protected override void OnContentChanged() { 54 53 base.OnContentChanged(); 55 if (Content == null) { 56 Caption = "Parameter"; 54 if (Content == null) 57 55 dataTypeTextBox.Text = "-"; 58 } else { 59 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 56 else 60 57 dataTypeTextBox.Text = Content.DataType.GetPrettyName(); 61 } 58 62 59 SetEnabledStateOfControls(); 63 60 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ScopeTreeLookupParameterView.cs
r3659 r3764 49 49 public ScopeTreeLookupParameterView() { 50 50 InitializeComponent(); 51 Caption = "ScopeTreeLookupParameter";52 51 } 53 52 … … 75 74 base.OnContentChanged(); 76 75 if (Content == null) { 77 Caption = "ScopeTreeLookupParameter";78 76 actualNameTextBox.Text = string.Empty; 79 77 depthTextBox.Text = string.Empty; 80 78 } else { 81 Caption = Content.Name + " (" + Content.GetType().Name + ")";82 79 actualNameTextBox.Text = Content.ActualName; 83 80 depthTextBox.Text = Content.Depth.ToString(); -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3758 r3764 53 53 public ValueLookupParameterView() { 54 54 InitializeComponent(); 55 Caption = "ValueLookupParameter";56 55 } 57 56 … … 79 78 base.OnContentChanged(); 80 79 if (Content == null) { 81 Caption = "ValueLookupParameter";82 80 actualNameTextBox.Text = "-"; 83 81 viewHost.Content = null; 84 82 } else { 85 Caption = Content.Name + " (" + Content.GetType().Name + ")";86 83 actualNameTextBox.Text = Content.ActualName; 87 84 viewHost.ViewType = null; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r3758 r3764 54 54 public ValueParameterView() { 55 55 InitializeComponent(); 56 Caption = "ValueParameter";57 56 } 58 57 … … 78 77 base.OnContentChanged(); 79 78 if (Content == null) { 80 Caption = "ValueParameter";81 79 clearValueButton.Visible = true; 82 80 viewHost.Content = null; 83 81 } else { 84 Caption = Content.Name + " (" + Content.GetType().Name + ")";85 82 clearValueButton.Visible = !(Content is ValueParameter<T>); 86 83 viewHost.ViewType = null;
Note: See TracChangeset
for help on using the changeset viewer.