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

            _control = (CompanyImageControl)component;

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

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