Beispiel #1
0
        public DesignerGradientToolStripVerbCollection(IComponent component)
        {
            if (!(component is GradientToolStrip))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control = (GradientToolStrip)component;

            Add(new DesignerVerb("Инвертировать цвета градиента", (o, e) => _invertGradientColor()));
        }
Beispiel #2
0
        public DesignerGradientToolStripActionList(IComponent component)
            : base(component)
        {
            if (!(component is GradientToolStrip))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control   = (GradientToolStrip)component;
            _uiService = (DesignerActionUIService)GetService(typeof(DesignerActionUIService));
        }