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

            _control = (CompanyImageControl)component;

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