public DesignerCompanyImageVerbCollection(IComponent component) { if (!(component is CompanyImageControl)) { throw new ArgumentNullException(nameof(component)); } _control = (CompanyImageControl)component; Add(new DesignerVerb("Инвертировать цвета градиента", (o, e) => _invertGradientColor())); }
public DesignerCompanyImageActionList(IComponent component) : base(component) { if (!(component is CompanyImageControl)) { throw new ArgumentNullException(nameof(component)); } _control = (CompanyImageControl)component; _uiService = (DesignerActionUIService)GetService(typeof(DesignerActionUIService)); }