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