Ejemplo n.º 1
0
            public override Control ConstructUIElement(AdvantagesComponent Parent)
            {
                Label label = new Label
                {
                    Anchor = AnchorStyles.Left,
                    Text   = Value.CurrentValue.ToString()
                };

                ContextMenuStrip contextMenu     = new ContextMenuStrip();
                ToolStripItem    ChangeValueItem = contextMenu.Items.Add("Change value");

                ChangeValueItem.Click += new EventHandler(OpenChangeValueDialog);
                label.ContextMenuStrip = contextMenu;

                CachedLabel  = label;
                CachedParent = Parent;
                return(label);
            }
Ejemplo n.º 2
0
 public abstract Control ConstructUIElement(AdvantagesComponent Parent);