ComponentFactory.Krypton.Toolkit.PaletteElementColorInheritOverride.PaletteElementColorInheritOverride C# (CSharp) Метод

PaletteElementColorInheritOverride() публичный Метод

Initialize a new instance of the PaletteElementColorInheritOverride class.
public PaletteElementColorInheritOverride ( IPaletteElementColor primary, IPaletteElementColor backup ) : System
primary IPaletteElementColor First choice inheritence.
backup IPaletteElementColor Backup inheritence.
Результат System
        public PaletteElementColorInheritOverride(IPaletteElementColor primary,
                                                  IPaletteElementColor backup)
        {
            Debug.Assert(primary != null);
            Debug.Assert(backup != null);

            // Store incoming alternatives
            _primary = primary;
            _backup = backup;

            // Default other state
            _apply = true;
            _override = true;
            _state = PaletteState.Normal;
        }