/// <summary> /// Initialize a new instance of the PaletteNodeOverride class. /// </summary> /// <param name="triple">Palette to use.</param> public PaletteNodeOverride(IPaletteTriple triple) { Debug.Assert(triple != null); // Validate incoming references if (triple == null) throw new ArgumentNullException("triple"); // Create the triple override instances _overrideBack = new PaletteBackInheritNode(triple.PaletteBack); _overrideBorder = new PaletteBorderInheritOverride(triple.PaletteBorder, triple.PaletteBorder); _overrideContent = new PaletteContentInheritNode(triple.PaletteContent); }
/// <summary> /// Initialize a new instance of the PaletteNodeOverride class. /// </summary> /// <param name="triple">Palette to use.</param> /// <exception cref="ArgumentNullException"></exception> public PaletteNodeOverride(IPaletteTriple triple) { Debug.Assert(triple != null); // Validate incoming references if (triple == null) { throw new ArgumentNullException(nameof(triple)); } // Create the triple override instances _overrideBack = new PaletteBackInheritNode(triple.PaletteBack); _overrideBorder = new PaletteBorderInheritOverride(triple.PaletteBorder, triple.PaletteBorder); _overrideContent = new PaletteContentInheritNode(triple.PaletteContent); }