Exemplo n.º 1
0
        public DesignerGradientPanelVerbCollection(IComponent component)
        {
            if (!(component is GradientPanel))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control = (GradientPanel)component;

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

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