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