Exemple #1
0
        public override ToolStripMenuItem GetMenu()
        {
            if (menuItemCache != null)
            {
                return(menuItemCache);
            }

            menuItemCache             = new ToolStripMenuItem(Name, Icon);
            menuItemCache.ToolTipText = Description;

            var children = menuItemCache.DropDownItems;

            children.Add(new ToolStripMenuItem(I18N.Options, null, (s, a) => Show()));
            children.Add(new ToolStripSeparator());
            children.AddRange(luncher?.GetSubMenu());

            return(menuItemCache);
        }
Exemple #2
0
        public override ToolStripMenuItem GetMenu()
        {
            if (menuItemCache != null)
            {
                return(menuItemCache);
            }

            VgcApis.Misc.UI.Invoke(() =>
            {
                menuItemCache             = new ToolStripMenuItem(Name, Icon);
                menuItemCache.ToolTipText = Description;

                var children = menuItemCache.DropDownItems;
                children.Add(new ToolStripMenuItem(
                                 I18N.Options,
                                 Properties.Resources.WebConfiguration_16x,
                                 (s, a) => Show()));
                children.Add(new ToolStripSeparator());
                children.AddRange(luncher?.GetSubMenu());
            });

            return(menuItemCache);
        }