ComponentFactory.Krypton.Toolkit.KryptonColorButton.OnKryptonCommandChanged C# (CSharp) Method

OnKryptonCommandChanged() protected method

Raises the KryptonCommandChanged event.
protected OnKryptonCommandChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void
        protected virtual void OnKryptonCommandChanged(EventArgs e)
        {
            if (KryptonCommandChanged != null)
                KryptonCommandChanged(this, e);

            // Use the values from the new command
            if (KryptonCommand != null)
            {
                Enabled = KryptonCommand.Enabled;
                Values.Image = KryptonCommand.ImageSmall;
            }

            // Redraw to update the text/extratext/image properties
            PerformNeedPaint(true);
        }