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);
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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);
        }