Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3471


Ignore:
Timestamp:
04/21/10 18:44:19 (15 years ago)
Author:
mkommend
Message:

corrected bug in ViewHost; viewPanel was not set visible again (ticket #972)

File:
1 edited

Legend:

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

    r3466 r3471  
    121121      messageLabel.Visible = false;
    122122      viewsLabel.Visible = false;
    123       viewsLabel.Enabled = false;
    124123      viewPanel.Visible = false;
    125124      viewContextMenuStrip.Item = Content;
    126125     
    127126      if (Content != null) {
    128        
    129127        if (viewContextMenuStrip.Items.Count == 0)
    130128          messageLabel.Visible = true;
    131129        else {
    132130          viewsLabel.Visible = true;
    133           viewsLabel.Enabled = true;
     131          viewPanel.Visible = true;
    134132        }
    135133
     
    139137            ViewType = (Type)viewContextMenuStrip.Items[0].Tag;
    140138        }
    141 
     139        UpdateActiveMenuItem();
    142140        foreach (IContentView view in cachedViews.Values)
    143141          view.Content = this.Content;
     
    169167      }
    170168      this.ActiveView = view;
    171 
    172169      Control control = (Control)view;
    173170      control.Dock = DockStyle.Fill;
Note: See TracChangeset for help on using the changeset viewer.