Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/10 01:39:32 (15 years ago)
Author:
mkommend
Message:

added operator graph tab page to EngineAlgorithmView (ticket #973)

File:
1 edited

Legend:

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

    r3350 r3361  
    6363          viewContextMenuStrip.Item = content;
    6464          cachedViews.Clear();
     65          this.viewsLabel.Enabled = value != null;
    6566          Initialize();
    6667        }
     
    7374        this.SuspendRepaint();
    7475        base.Enabled = value;
    75         this.viewsLabel.Enabled = value;
     76        if (Content != null && value)
     77          this.viewsLabel.Enabled = value;
    7678        this.ResumeRepaint(true);
    7779      }
     
    113115
    114116      if (Content != null) {
    115         if (viewContextMenuStrip.Items.Count == 0) 
     117        if (viewContextMenuStrip.Items.Count == 0)
    116118          messageLabel.Visible = true;
    117          else
     119        else
    118120          viewsLabel.Visible = true;
    119121
     
    140142      UpdateActiveMenuItem();
    141143      cachedViews.Clear();
    142       Control view = (Control)MainFormManager.CreateView(viewType, Content,ReadOnly);
     144      Control view = (Control)MainFormManager.CreateView(viewType, Content, ReadOnly);
    143145      cachedViews.Add(viewType, ((IView)view));
    144146      view.Dock = DockStyle.Fill;
     
    168170
    169171    private void viewsLabel_DoubleClick(object sender, EventArgs e) {
    170       MainFormManager.CreateView(viewType, Content,ReadOnly).Show();
     172      MainFormManager.CreateView(viewType, Content, ReadOnly).Show();
    171173    }
    172174
Note: See TracChangeset for help on using the changeset viewer.