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