Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9186


Ignore:
Timestamp:
01/24/13 12:46:09 (11 years ago)
Author:
ascheibe
Message:

#2006 fixed disposing of ViewContextMenuStrip

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls
Files:
2 edited

Legend:

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

    r9180 r9186  
    2222using System;
    2323using System.Collections.Generic;
     24using System.ComponentModel;
    2425using System.Linq;
    2526using System.Windows.Forms;
     
    3334    }
    3435
    35     public ViewContextMenuStrip(object item)
    36       : this() {
    37       this.Item = item;
     36    public ViewContextMenuStrip(IContainer container)
     37      : base(container) {
     38        InitializeComponent();
     39      this.menuItems = new Dictionary<Type, ToolStripMenuItem>();
     40      this.ignoredViewTypes = new List<Type>();
    3841    }
    3942
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewHost.Designer.cs

    r9180 r9186  
    4848      this.messageLabel = new System.Windows.Forms.Label();
    4949      this.viewsLabel = new System.Windows.Forms.Label();
    50       this.viewContextMenuStrip = new HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip();
     50      this.viewContextMenuStrip = new HeuristicLab.MainForm.WindowsForms.ViewContextMenuStrip(this.components);
    5151      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    5252      this.configurationLabel = new System.Windows.Forms.Label();
Note: See TracChangeset for help on using the changeset viewer.