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/ViewHost.cs

    r2708 r2713  
    3434    private Dictionary<Type, ToolStripMenuItem> typeMenuItemTable;
    3535
    36     private object obj;
    37     public object Object {
    38       get { return obj; }
     36    private object content;
     37    public object Content {
     38      get { return content; }
    3939      set {
    40         if (value != obj) {
    41           obj = value;
     40        if (value != content) {
     41          content = value;
    4242          Initialize();
    4343        }
     
    6363      viewPanel.Visible = false;
    6464
    65       if (Object != null) {
    66         var viewTypes = from t in MainFormManager.GetViewTypes(Object.GetType())
     65      if (Content != null) {
     66        var viewTypes = from t in MainFormManager.GetViewTypes(Content.GetType())
    6767                        orderby t.Name ascending
    6868                        select t;
     
    8484        }
    8585
    86         Control view = (Control)MainFormManager.CreateDefaultView(Object);
     86        Control view = (Control)MainFormManager.CreateDefaultView(Content);
    8787        if (view != null) {
    8888          viewPanel.Controls.Add(view);
     
    9898
    9999    private void viewsLabel_DoubleClick(object sender, EventArgs e) {
    100       MainFormManager.CreateView(viewPanel.Tag.GetType(), Object).Show();
     100      MainFormManager.CreateView(viewPanel.Tag.GetType(), Content).Show();
    101101    }
    102102    protected void contextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e) {
     
    111111      if (viewPanel.Controls.Count > 0) viewPanel.Controls[0].Dispose();
    112112      viewPanel.Controls.Clear();
    113       Control view = (Control)MainFormManager.CreateView(viewType, Object);
     113      Control view = (Control)MainFormManager.CreateView(viewType, Content);
    114114      viewPanel.Controls.Add(view);
    115115      viewPanel.Tag = view;
Note: See TracChangeset for help on using the changeset viewer.