Changeset 7760


Ignore:
Timestamp:
04/25/12 12:47:35 (7 years ago)
Author:
mkommend
Message:

#1838: Changed RunView to allow modification of the name of a Run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r7259 r7760  
    4444    }
    4545
    46     public override bool ReadOnly {
    47       get { return true; }
    48       set { /*not needed because runs are always readonly */}
    49     }
    50 
    5146    /// <summary>
    5247    /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable".
     
    8378      listView.Enabled = Content != null;
    8479      detailsGroupBox.Enabled = (Content != null) && (listView.SelectedItems.Count == 1);
    85       viewHost.Enabled = Content != null;
    86       viewHost.ReadOnly = ReadOnly;
    8780      changeColorButton.Enabled = Content != null;
    8881      showAlgorithmButton.Enabled = Content != null && Content.Algorithm != null && !Locked;
     82    }
     83
     84    protected override void PropagateStateChanges(Control control, Type type, System.Reflection.PropertyInfo propertyInfo) {
     85      if (propertyInfo.Name == "ReadOnly") return;
     86      base.PropagateStateChanges(control, type, propertyInfo);
    8987    }
    9088
Note: See TracChangeset for help on using the changeset viewer.