Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3466


Ignore:
Timestamp:
04/21/10 17:26:17 (15 years ago)
Author:
mkommend
Message:

adapted ViewHost to ContentChanged mechanism (ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs

    r3437 r3466  
    101101        if (value == null || this.Content == null || value.GetType() != this.Content.GetType())
    102102          cachedViews.Clear();
    103         viewContextMenuStrip.Item = value;
    104         this.viewsLabel.Enabled = value != null;
     103
    105104        base.Content = value;
    106105      }
     
    122121      messageLabel.Visible = false;
    123122      viewsLabel.Visible = false;
     123      viewsLabel.Enabled = false;
    124124      viewPanel.Visible = false;
    125 
     125      viewContextMenuStrip.Item = Content;
     126     
    126127      if (Content != null) {
     128       
    127129        if (viewContextMenuStrip.Items.Count == 0)
    128130          messageLabel.Visible = true;
    129         else
     131        else {
    130132          viewsLabel.Visible = true;
     133          viewsLabel.Enabled = true;
     134        }
    131135
    132136        if (!ViewCanShowContent(viewType, Content)) {
Note: See TracChangeset for help on using the changeset viewer.