Changeset 9363 for branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewContextMenuStrip.cs
- Timestamp:
- 04/16/13 13:13:41 (12 years ago)
- Location:
- branches/OaaS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ViewContextMenuStrip.cs
r7259 r9363 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 33 34 } 34 35 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>(); 38 41 } 39 42 … … 63 66 if (InvokeRequired) Invoke((Action)RefreshMenuItems); 64 67 else { 68 foreach (ToolStripMenuItem m in menuItems.Values) 69 m.Dispose(); 65 70 this.Items.Clear(); 66 71 this.menuItems.Clear();
Note: See TracChangeset
for help on using the changeset viewer.