- Timestamp:
- 03/23/11 01:09:38 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Parameters.Views/3.3
- Property svn:ignore
-
old new 3 3 *.user 4 4 HeuristicLabParametersViewsPlugin.cs 5 *.vs10x
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r5744 r5809 103 103 protected override void SetEnabledStateOfControls() { 104 104 base.SetEnabledStateOfControls(); 105 setValueButton.Enabled = Content != null && ! ReadOnly;106 clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is ValueParameter<T>) && !ReadOnly;105 setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly; 106 clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter) && !ReadOnly; 107 107 showInRunCheckBox.Enabled = Content != null && !ReadOnly; 108 108 } … … 113 113 else { 114 114 SetDataTypeTextBoxText(); 115 clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is ValueParameter<T>) && !ReadOnly; 115 setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly; 116 clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter<T>) && !ReadOnly; 116 117 valueViewHost.ViewType = null; 117 118 valueViewHost.Content = Content != null ? Content.Value : null; … … 148 149 protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) { 149 150 e.Effect = DragDropEffects.None; 151 if (Content is IFixedValueParameter) return; 150 152 if (!ReadOnly && (e.Data.GetData("HeuristicLab") != null) && Content.DataType.IsAssignableFrom(e.Data.GetData("HeuristicLab").GetType())) { 151 153 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key
Note: See TracChangeset
for help on using the changeset viewer.