Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/29/10 01:44:57 (15 years ago)
Author:
swagner
Message:

Adapted HL 3.3 plugins according to changes in MainForm (#857)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs

    r2687 r2713  
    4646    /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>.
    4747    /// No own data storage present.</remarks>
    48     public IScope Scope {
    49       get { return (IScope)Item; }
    50       set { base.Item = value; }
     48    public new IScope Content {
     49      get { return (IScope)base.Content; }
     50      set { base.Content = value; }
    5151    }
    5252
     
    6969    public ScopeView(IScope scope)
    7070      : this() {
    71       Scope = scope;
     71      Content = scope;
    7272    }
    7373
     
    7676    /// </summary>
    7777    /// <remarks>Calls <see cref="ViewBase.UpdateControls"/> of base class <see cref="ViewBase"/>.</remarks>
    78     protected override void OnObjectChanged() {
    79       base.OnObjectChanged();
     78    protected override void OnContentChanged() {
     79      base.OnContentChanged();
    8080      if (scopesTreeView.Nodes.Count > 0) {
    8181        RemoveTreeNode(scopesTreeView.Nodes[0]);
    8282        scopesTreeView.Nodes.Clear();
    8383      }
    84       variableCollectionView.NamedItemCollection = null;
     84      variableCollectionView.Content = null;
    8585      variableCollectionView.Enabled = false;
    86       if (Scope == null) {
     86      if (Content == null) {
    8787        Caption = "Scope";
    8888        scopesTreeView.Enabled = false;
    8989      } else {
    90         Caption = Scope.Name + " (" + Scope.GetType().Name + ")";
     90        Caption = Content.Name + " (" + Content.GetType().Name + ")";
    9191        scopesTreeView.Enabled = true;
    92         scopesTreeView.Nodes.Add(CreateTreeNode(Scope));
     92        scopesTreeView.Nodes.Add(CreateTreeNode(Content));
    9393      }
    9494    }
     
    133133      TreeNode node = scopesTreeView.GetNodeAt(e.X, e.Y);
    134134      if ((node != null) && (node.Tag is IScope)) {
    135         variableCollectionView.NamedItemCollection = ((IScope)node.Tag).Variables;
     135        variableCollectionView.Content = ((IScope)node.Tag).Variables;
    136136        variableCollectionView.Enabled = true;
    137137      } else {
    138         variableCollectionView.NamedItemCollection = null;
     138        variableCollectionView.Content = null;
    139139        variableCollectionView.Enabled = false;
    140140        if (node == null) scopesTreeView.SelectedNode = null;
Note: See TracChangeset for help on using the changeset viewer.