Changeset 2707 for trunk/sources
- Timestamp:
- 01/28/10 20:39:00 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ActionUserInterfaceItem.cs
r2704 r2707 29 29 public abstract class ActionUserInterfaceItem : HeuristicLab.MainForm.ActionUserInterfaceItem { 30 30 private ToolStripItem toolStripItem; 31 public virtualToolStripItem ToolStripItem {31 public ToolStripItem ToolStripItem { 32 32 get { return this.toolStripItem; } 33 internal set { this.toolStripItem = value; } 33 internal set { 34 if (this.toolStripItem != value) { 35 this.toolStripItem = value; 36 if (this.toolStripItem == null) 37 this.OnToolStripItemSet(new EventArgs()); 38 } 39 } 34 40 } 35 41 … … 38 44 } 39 45 40 protected internalvirtual void OnToolStripItemSet(EventArgs e) {46 protected virtual void OnToolStripItemSet(EventArgs e) { 41 47 } 42 48 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainForm.cs
r2704 r2707 347 347 toolStripItem.Image = userInterfaceItem.Image; 348 348 toolStripItem.Click += new EventHandler(ToolStripItemClicked); 349 if (userInterfaceItem is ActionUserInterfaceItem)350 ((ActionUserInterfaceItem)userInterfaceItem).OnToolStripItemSet(new EventArgs());351 349 this.userInterfaceItems.Add(userInterfaceItem); 352 350 }
Note: See TracChangeset
for help on using the changeset viewer.