예제 #1
0
        public DesignerGradientPanelVerbCollection(IComponent component)
        {
            if (!(component is GradientPanel))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control = (GradientPanel)component;

            Add(new DesignerVerb("Инвертировать цвета градиента", (o, e) => _invertGradientColor()));
        }
예제 #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));
        }