protected virtual void AddHeader(ContextMenuBuilder builder) { var simItem = builder.AddItem("SIM", this.SIMClickHandler); simItem.Font = new Font(simItem.Font, FontStyle.Bold | FontStyle.Italic); this.SendItemConstructedEvent(simItem, MenuEntryPosition.HeaderEntry, null); builder.AddDemiliter(); }
protected virtual void AddFooter(ContextMenuBuilder builder) { builder.AddDemiliter(); ToolStripItem exitItem = builder.AddItem("Exit", this.ExitClickHandler); exitItem.Font = new Font(exitItem.Font, FontStyle.Bold | FontStyle.Italic); this.SendItemConstructedEvent(exitItem, MenuEntryPosition.HeaderEntry, null); }
protected virtual void AddHeader(ContextMenuBuilder builder) { var simItem = builder.AddItem("SIM", this.SIMClickHandler); simItem.Font = new Font(simItem.Font, FontStyle.Bold | FontStyle.Italic); this.SendItemConstructedEvent(simItem, MenuEntryPosition.HeaderEntry, null); builder.AddDemiliter(); }
protected virtual void AddFooter(ContextMenuBuilder builder) { builder.AddDemiliter(); ToolStripItem exitItem = builder.AddItem("Exit", this.ExitClickHandler); exitItem.Font = new Font(exitItem.Font, FontStyle.Bold | FontStyle.Italic); this.SendItemConstructedEvent(exitItem, MenuEntryPosition.HeaderEntry, null); }