ComponentFactory.Krypton.Toolkit.KryptonListBox.UpdateStateAndPalettes C# (CSharp) Method

UpdateStateAndPalettes() private method

private UpdateStateAndPalettes ( ) : void
return void
        private void UpdateStateAndPalettes()
        {
            if (!IsDisposed)
            {
                // Get the correct palette settings to use
                IPaletteDouble doubleState = GetDoubleState();
                _listBox.ViewDrawPanel.SetPalettes(doubleState.PaletteBack);
                _drawDockerOuter.SetPalettes(doubleState.PaletteBack, doubleState.PaletteBorder);
                _drawDockerOuter.Enabled = Enabled;

                // Find the new state of the main view element
                PaletteState state;
                if (IsActive)
                    state = PaletteState.Tracking;
                else
                {
                    if (Enabled)
                        state = PaletteState.Normal;
                    else
                        state = PaletteState.Disabled;
                }

                _listBox.ViewDrawPanel.ElementState = state;
                _drawDockerOuter.ElementState = state;
            }
        }
KryptonListBox