ComponentFactory.Krypton.Toolkit.KryptonPaletteImagesCheckBox.PopulateFromBase C# (CSharp) Method

PopulateFromBase() public method

Populate values from the base palette.
public PopulateFromBase ( ) : void
return void
        public void PopulateFromBase()
        {
            _checkedDisabled = _redirect.GetCheckBoxImage(false, CheckState.Checked, false, false);
            _checkedNormal = _redirect.GetCheckBoxImage(true, CheckState.Checked, false, false);
            _checkedTracking = _redirect.GetCheckBoxImage(true, CheckState.Checked, true, false);
            _checkedPressed = _redirect.GetCheckBoxImage(true, CheckState.Checked, false, true);
            _uncheckedDisabled = _redirect.GetCheckBoxImage(false, CheckState.Unchecked, false, false);
            _uncheckedNormal = _redirect.GetCheckBoxImage(true, CheckState.Unchecked, false, false);
            _uncheckedTracking = _redirect.GetCheckBoxImage(true, CheckState.Unchecked, true, false);
            _uncheckedPressed = _redirect.GetCheckBoxImage(true, CheckState.Unchecked, false, true);
            _indeterminateDisabled = _redirect.GetCheckBoxImage(false, CheckState.Indeterminate, false, false);
            _indeterminateNormal = _redirect.GetCheckBoxImage(true, CheckState.Indeterminate, false, false);
            _indeterminateTracking = _redirect.GetCheckBoxImage(true, CheckState.Indeterminate, true, false);
            _indeterminatePressed = _redirect.GetCheckBoxImage(true, CheckState.Indeterminate, false, true);
        }

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 public void PopulateFromBase()
 {
     // Populate only the designated styles
     _imagesCheckBox.PopulateFromBase();
     _imagesContextMenu.PopulateFromBase();
     _imagesDropDownButton.PopulateFromBase();
     _imagesGalleryButtons.PopulateFromBase();
     _imagesRadioButton.PopulateFromBase();
     _imagesTreeView.PopulateFromBase();
 }