Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6552


Ignore:
Timestamp:
07/08/11 10:47:43 (13 years ago)
Author:
mkommend
Message:

#1555: Forbid renaming of nodes during experiment execution.

File:
1 edited

Legend:

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

    r6550 r6552  
    656656        CollapseToolStripMenuItem.Enabled = toolStripMenuNode.IsExpanded;
    657657        CollapseToolStripMenuItem.Visible = toolStripMenuNode.IsExpanded;
    658         EditNodeLabelToolStripMenuItem.Enabled = toolStripMenuNode.Tag != null && toolStripMenuNode.Tag is INamedItem;
    659         EditNodeLabelToolStripMenuItem.Visible = toolStripMenuNode.Tag != null && toolStripMenuNode.Tag is INamedItem;
     658        EditNodeLabelToolStripMenuItem.Enabled = !Locked && !ReadOnly && toolStripMenuNode.Tag != null && toolStripMenuNode.Tag is INamedItem && ((INamedItem)toolStripMenuNode.Tag).CanChangeName;
     659        EditNodeLabelToolStripMenuItem.Visible = !Locked && !ReadOnly && toolStripMenuNode.Tag != null && toolStripMenuNode.Tag is INamedItem && ((INamedItem)toolStripMenuNode.Tag).CanChangeName;
    660660        if (contextMenuStrip.Items.Cast<ToolStripMenuItem>().Any(item => item.Enabled))
    661661          contextMenuStrip.Show(Cursor.Position);
Note: See TracChangeset for help on using the changeset viewer.