protected virtual void OnCheckStateChanged(EventArgs e)
{
// Update the checked state that is drawn
_drawCheckBox.CheckState = _checkState;
if (CheckStateChanged != null)
CheckStateChanged(this, e);
// If there is a command associated then update with new state
if (KryptonCommand != null)
KryptonCommand.CheckState = CheckState;
}