ComponentFactory.Krypton.Toolkit.KryptonInternalKCT.KryptonInternalKCT C# (CSharp) Method

KryptonInternalKCT() public method

Initialize a new instance of the KryptonInternalKCT class.
public KryptonInternalKCT ( KryptonColorTable baseKCT, IPalette palette ) : System
baseKCT KryptonColorTable Initial base KCT to inherit values from.
palette IPalette Reference to associated palette.
return System
        public KryptonInternalKCT(KryptonColorTable baseKCT,
                                  IPalette palette)
            : base(palette)
        {
            Debug.Assert(baseKCT != null);

            // Remember the base used for inheriting
            _baseKCT = baseKCT;

            // Always assume the same use of system colors
            UseSystemColors = _baseKCT.UseSystemColors;

            // Create the array for storing colors
            _colors = new Color[(int)PaletteColorIndex.Count];

            // Initialise all the colors to empty
            for (int i = 0; i < _colors.Length; i++)
                _colors[i] = Color.Empty;

            // Initialise other storage values
            _useRoundedEdges = InheritBool.Inherit;
        }
KryptonInternalKCT