コード例 #1
0
        public DesignerGradientStatusStripVerbCollection(IComponent component)
        {
            if (!(component is GradientStatusStrip))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control = (GradientStatusStrip)component;

            Add(new DesignerVerb("Инвертировать цвета градиента", (o, e) => _invertGradientColor()));
        }
コード例 #2
0
        public DesignerGradientStatusStripActionList(IComponent component)
            : base(component)
        {
            if (!(component is GradientStatusStrip))
            {
                throw new ArgumentNullException(nameof(component));
            }

            _control   = (GradientStatusStrip)component;
            _uiService = (DesignerActionUIService)GetService(typeof(DesignerActionUIService));
        }