diff --git a/Source/Krypton Docking Examples/Docking Customized/ContentPropertyGrid.cs b/Source/Krypton Docking Examples/Docking Customized/ContentPropertyGrid.cs index 5e2b8e01..83181dc2 100644 --- a/Source/Krypton Docking Examples/Docking Customized/ContentPropertyGrid.cs +++ b/Source/Krypton Docking Examples/Docking Customized/ContentPropertyGrid.cs @@ -52,7 +52,7 @@ private void ContentPropertyGrid_Load(object sender, EventArgs e) private void OnGlobalPaletteChanged(object sender, EventArgs e) { // Use the current font from the global palette - IPalette palette = KryptonManager.CurrentGlobalPalette; + var palette = KryptonManager.CurrentGlobalPalette; Font font = palette.GetContentShortTextFont(PaletteContentStyle.LabelNormalControl, PaletteState.Normal); propertyGrid1.Font = font; } diff --git a/Source/Krypton Docking Examples/Docking Persistence/ContentPropertyGrid.cs b/Source/Krypton Docking Examples/Docking Persistence/ContentPropertyGrid.cs index ba12de8c..9bc1128a 100644 --- a/Source/Krypton Docking Examples/Docking Persistence/ContentPropertyGrid.cs +++ b/Source/Krypton Docking Examples/Docking Persistence/ContentPropertyGrid.cs @@ -52,7 +52,7 @@ private void ContentPropertyGrid_Load(object sender, EventArgs e) private void OnGlobalPaletteChanged(object sender, EventArgs e) { // Use the current font from the global palette - IPalette palette = KryptonManager.CurrentGlobalPalette; + var palette = KryptonManager.CurrentGlobalPalette; Font font = palette.GetContentShortTextFont(PaletteContentStyle.LabelNormalControl, PaletteState.Normal); propertyGrid1.Font = font; } diff --git a/Source/Krypton Docking Examples/External Drag To Docking/ContentPropertyGrid.cs b/Source/Krypton Docking Examples/External Drag To Docking/ContentPropertyGrid.cs index 23978b8f..1ced0374 100644 --- a/Source/Krypton Docking Examples/External Drag To Docking/ContentPropertyGrid.cs +++ b/Source/Krypton Docking Examples/External Drag To Docking/ContentPropertyGrid.cs @@ -52,7 +52,7 @@ private void ContentPropertyGrid_Load(object sender, EventArgs e) private void OnGlobalPaletteChanged(object sender, EventArgs e) { // Use the current font from the global palette - IPalette palette = KryptonManager.CurrentGlobalPalette; + var palette = KryptonManager.CurrentGlobalPalette; Font font = palette.GetContentShortTextFont(PaletteContentStyle.LabelNormalControl, PaletteState.Normal); propertyGrid1.Font = font; } diff --git a/Source/Krypton Docking Examples/Standard Docking/ContentPropertyGrid.cs b/Source/Krypton Docking Examples/Standard Docking/ContentPropertyGrid.cs index 536fc984..fc75fd1f 100644 --- a/Source/Krypton Docking Examples/Standard Docking/ContentPropertyGrid.cs +++ b/Source/Krypton Docking Examples/Standard Docking/ContentPropertyGrid.cs @@ -52,7 +52,7 @@ private void ContentPropertyGrid_Load(object sender, EventArgs e) private void OnGlobalPaletteChanged(object sender, EventArgs e) { // Use the current font from the global palette - IPalette palette = KryptonManager.CurrentGlobalPalette; + var palette = KryptonManager.CurrentGlobalPalette; Font font = palette.GetContentShortTextFont(PaletteContentStyle.LabelNormalControl, PaletteState.Normal); propertyGrid1.Font = font; } diff --git a/Source/Krypton Navigator Examples/Navigator Palettes/Form1.Designer.cs b/Source/Krypton Navigator Examples/Navigator Palettes/Form1.Designer.cs index 7344db4f..64b9684f 100644 --- a/Source/Krypton Navigator Examples/Navigator Palettes/Form1.Designer.cs +++ b/Source/Krypton Navigator Examples/Navigator Palettes/Form1.Designer.cs @@ -50,8 +50,8 @@ private void InitializeComponent() this.radioOffice2003 = new System.Windows.Forms.RadioButton(); this.radioSystem = new System.Windows.Forms.RadioButton(); this.buttonClose = new System.Windows.Forms.Button(); - this.kryptonPaletteBlogger = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteLightweight = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteBlogger = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteLightweight = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit(); this.kryptonNavigator1.SuspendLayout(); @@ -1447,8 +1447,8 @@ private void InitializeComponent() private System.Windows.Forms.RadioButton radioOffice2003; private System.Windows.Forms.RadioButton radioSystem; private System.Windows.Forms.Button buttonClose; - private Krypton.Toolkit.KryptonPalette kryptonPaletteBlogger; - private Krypton.Toolkit.KryptonPalette kryptonPaletteLightweight; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteBlogger; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteLightweight; private System.Windows.Forms.RadioButton radioOffice2007Black; private System.Windows.Forms.RadioButton radioOffice2007Silver; private System.Windows.Forms.RadioButton radioOffice2007Blue; diff --git a/Source/Krypton Toolkit Examples/Custom Control using Palettes/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Custom Control using Palettes/Form1.Designer.cs index eec948d8..880b9d1a 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Palettes/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Palettes/Form1.Designer.cs @@ -44,7 +44,7 @@ private void InitializeComponent() this.groupBoxDescription = new System.Windows.Forms.GroupBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.buttonClose = new System.Windows.Forms.Button(); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonCheckSet)).BeginInit(); this.groupBoxPalettes.SuspendLayout(); this.groupBoxCustomControl.SuspendLayout(); @@ -512,7 +512,7 @@ private void InitializeComponent() private System.Windows.Forms.GroupBox groupBoxDescription; private System.Windows.Forms.Button buttonClose; private System.Windows.Forms.CheckBox checkBoxEnabled; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; private Krypton.Toolkit.KryptonCheckButton buttonCustom; private System.Windows.Forms.TextBox textBox1; private Krypton.Toolkit.KryptonCheckButton buttonOffice2010Blue; diff --git a/Source/Krypton Toolkit Examples/Custom Control using Palettes/MyUserControl.cs b/Source/Krypton Toolkit Examples/Custom Control using Palettes/MyUserControl.cs index fe3902d2..00073a2e 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Palettes/MyUserControl.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Palettes/MyUserControl.cs @@ -22,7 +22,7 @@ public class MyUserControl : UserControl { private bool _mouseOver; private bool _mouseDown; - private IPalette _palette; + private PaletteBase _palette; public MyUserControl() { @@ -37,11 +37,11 @@ public MyUserControl() // Hook into palette events if (_palette != null) { - _palette.PalettePaint += new EventHandler(OnPalettePaint); + _palette.PalettePaint += OnPalettePaint; } // We want to be notified whenever the global palette changes - KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged); + KryptonManager.GlobalPaletteChanged += OnGlobalPaletteChanged; } protected override void Dispose(bool disposing) @@ -51,12 +51,12 @@ protected override void Dispose(bool disposing) // Unhook from the palette events if (_palette != null) { - _palette.PalettePaint -= new EventHandler(OnPalettePaint); + _palette.PalettePaint -= OnPalettePaint; _palette = null; } // Unhook from the static events, otherwise we cannot be garbage collected - KryptonManager.GlobalPaletteChanged -= new EventHandler(OnGlobalPaletteChanged); + KryptonManager.GlobalPaletteChanged -= OnGlobalPaletteChanged; } base.Dispose(disposing); @@ -220,16 +220,16 @@ private void OnGlobalPaletteChanged(object sender, EventArgs e) // Unhook events from old palette if (_palette != null) { - _palette.PalettePaint -= new EventHandler(OnPalettePaint); + _palette.PalettePaint -= OnPalettePaint; } - // Cache the new IPalette that is the global palette + // Cache the new PaletteBase that is the global palette _palette = KryptonManager.CurrentGlobalPalette; // Hook into events for the new palette if (_palette != null) { - _palette.PalettePaint += new EventHandler(OnPalettePaint); + _palette.PalettePaint += OnPalettePaint; } // Change of palette means we should repaint to show any changes diff --git a/Source/Krypton Toolkit Examples/Custom Control using Renderers/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Custom Control using Renderers/Form1.Designer.cs index c93d4c12..9bfdb9d7 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Renderers/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Renderers/Form1.Designer.cs @@ -48,7 +48,7 @@ private void InitializeComponent() this.buttonClose = new System.Windows.Forms.Button(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); this.kryptonCheckSet = new Krypton.Toolkit.KryptonCheckSet(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.groupBoxDescription.SuspendLayout(); this.groupBoxCustomControl.SuspendLayout(); this.groupBoxPalettes.SuspendLayout(); @@ -461,7 +461,7 @@ private void InitializeComponent() private System.Windows.Forms.RadioButton radioTop; private Krypton.Toolkit.KryptonCheckButton buttonOffice2010Blue; private Krypton.Toolkit.KryptonCheckButton buttonOffice2007Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; } } diff --git a/Source/Krypton Toolkit Examples/Custom Control using Renderers/MyUserControl.cs b/Source/Krypton Toolkit Examples/Custom Control using Renderers/MyUserControl.cs index 11cb9fdb..165159a7 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Renderers/MyUserControl.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Renderers/MyUserControl.cs @@ -25,11 +25,11 @@ public class MyUserControl : UserControl, private VisualOrientation _orientation; private bool _mouseOver; private bool _mouseDown; - private IPalette _palette; - private PaletteRedirect _paletteRedirect; - private PaletteBackInheritRedirect _paletteBack; - private PaletteBorderInheritRedirect _paletteBorder; - private PaletteContentInheritRedirect _paletteContent; + private PaletteBase _palette; + private readonly PaletteRedirect _paletteRedirect; + private readonly PaletteBackInheritRedirect _paletteBack; + private readonly PaletteBorderInheritRedirect _paletteBorder; + private readonly PaletteContentInheritRedirect _paletteContent; private IDisposable _mementoContent; private IDisposable _mementoBack1; private IDisposable _mementoBack2; @@ -47,11 +47,11 @@ public MyUserControl() // Hook into palette events if (_palette != null) { - _palette.PalettePaint += new EventHandler(OnPalettePaint); + _palette.PalettePaint += OnPalettePaint; } // We want to be notified whenever the global palette changes - KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged); + KryptonManager.GlobalPaletteChanged += OnGlobalPaletteChanged; // Create redirection object to the base palette _paletteRedirect = new PaletteRedirect(_palette); @@ -102,12 +102,12 @@ protected override void Dispose(bool disposing) // Unhook from the palette events if (_palette != null) { - _palette.PalettePaint -= new EventHandler(OnPalettePaint); + _palette.PalettePaint -= OnPalettePaint; _palette = null; } // Unhook from the static events, otherwise we cannot be garbage collected - KryptonManager.GlobalPaletteChanged -= new EventHandler(OnGlobalPaletteChanged); + KryptonManager.GlobalPaletteChanged -= OnGlobalPaletteChanged; } base.Dispose(disposing); @@ -157,19 +157,17 @@ protected override void OnLayout(LayoutEventArgs e) IRenderer renderer = _palette.GetRenderer(); // Create a layout context used to allow the renderer to layout the content - using (ViewLayoutContext viewContext = new ViewLayoutContext(this, renderer)) - { - // Setup the appropriate style for the content - _paletteContent.Style = PaletteContentStyle.ButtonStandalone; + using ViewLayoutContext viewContext = new ViewLayoutContext(this, renderer); + // Setup the appropriate style for the content + _paletteContent.Style = PaletteContentStyle.ButtonStandalone; - // Cleaup resources by disposing of old memento instance - _mementoContent?.Dispose(); + // Cleanup resources by disposing of old memento instance + _mementoContent?.Dispose(); - // Ask the renderer to work out how the Content values will be layed out and - // return a memento object that we cache for use when actually performing painting - _mementoContent = renderer.RenderStandardContent.LayoutContent(viewContext, innerRect, _paletteContent, - this, Orientation, buttonState, false, false); - } + // Ask the renderer to work out how the Content values will be laid out and + // return a memento object that we cache for use when actually performing painting + _mementoContent = renderer.RenderStandardContent.LayoutContent(viewContext, innerRect, _paletteContent, + this, Orientation, buttonState, false, false); } base.OnLayout(e); @@ -183,71 +181,67 @@ protected override void OnPaint(PaintEventArgs e) IRenderer renderer = _palette.GetRenderer(); // Create the rendering context that is passed into all renderer calls - using (RenderContext renderContext = new RenderContext(this, e.Graphics, e.ClipRectangle, renderer)) + using RenderContext renderContext = new RenderContext(this, e.Graphics, e.ClipRectangle, renderer); + ///////////////////////////////////////////////////////////////////////////////// + // We want to draw the background of the entire control over the entire client // + // area. In this example we are using a background style of HeaderPrimary // + ///////////////////////////////////////////////////////////////////////////////// + using (GraphicsPath path = CreateRectGraphicsPath(ClientRectangle)) + { + // Set the style we want picked up from the base palette + _paletteBack.Style = PaletteBackStyle.HeaderPrimary; + + // Ask renderer to draw the background + _mementoBack1 = renderer.RenderStandardBack.DrawBack(renderContext, ClientRectangle, path, _paletteBack, Orientation, + Enabled ? PaletteState.Normal : PaletteState.Disabled, _mementoBack1); + } + + // We want the inner part of the control to act like a button, so + // we need to find the correct palette state based on if the mouse + // is over the control if the mouse button is pressed down or not. + PaletteState buttonState = GetButtonState(); + + // Create a rectangle inset, this is where we will draw a button + Rectangle innerRect = ClientRectangle; + innerRect.Inflate(-20, -20); + + // Set the style of button we want to draw + _paletteBack.Style = PaletteBackStyle.ButtonStandalone; + _paletteBorder.Style = PaletteBorderStyle.ButtonStandalone; + _paletteContent.Style = PaletteContentStyle.ButtonStandalone; + + // Do we need to draw the background? + if (_paletteBack.GetBackDraw(buttonState) == InheritBool.True) + { + ////////////////////////////////////////////////////////////////////////////////// + // In case the border has a rounded effect we need to get the background path // + // to draw from the border part of the renderer. It will return a path that is // + // appropriate for use drawing within the border settings. // + ////////////////////////////////////////////////////////////////////////////////// + using GraphicsPath path = renderer.RenderStandardBorder.GetBackPath(renderContext, + innerRect, + _paletteBorder, + Orientation, + buttonState); + // Ask renderer to draw the background + _mementoBack2 = renderer.RenderStandardBack.DrawBack(renderContext, innerRect, path, _paletteBack, + Orientation, buttonState, _mementoBack2); + } + + // Do we need to draw the border? + if (_paletteBorder.GetBorderDraw(buttonState) == InheritBool.True) + { + // Now we draw the border of the inner area, also in ButtonStandalone style + renderer.RenderStandardBorder.DrawBorder(renderContext, innerRect, _paletteBorder, Orientation, buttonState); + } + + // Do we need to draw the content? + if (_paletteContent.GetContentDraw(buttonState) == InheritBool.True) { - ///////////////////////////////////////////////////////////////////////////////// - // We want to draw the background of the entire control over the entire client // - // area. In this example we are using a background style of HeaderPrimary // - ///////////////////////////////////////////////////////////////////////////////// - using (GraphicsPath path = CreateRectGraphicsPath(ClientRectangle)) - { - // Set the style we want picked up from the base palette - _paletteBack.Style = PaletteBackStyle.HeaderPrimary; - - // Ask renderer to draw the background - _mementoBack1 = renderer.RenderStandardBack.DrawBack(renderContext, ClientRectangle, path, _paletteBack, Orientation, - Enabled ? PaletteState.Normal : PaletteState.Disabled, _mementoBack1); - } - - // We want the inner part of the control to act like a button, so - // we need to find the correct palette state based on if the mouse - // is over the control if the mouse button is pressed down or not. - PaletteState buttonState = GetButtonState(); - - // Create a rectangle inset, this is where we will draw a button - Rectangle innerRect = ClientRectangle; - innerRect.Inflate(-20, -20); - - // Set the style of button we want to draw - _paletteBack.Style = PaletteBackStyle.ButtonStandalone; - _paletteBorder.Style = PaletteBorderStyle.ButtonStandalone; - _paletteContent.Style = PaletteContentStyle.ButtonStandalone; - - // Do we need to draw the background? - if (_paletteBack.GetBackDraw(buttonState) == InheritBool.True) - { - ////////////////////////////////////////////////////////////////////////////////// - // In case the border has a rounded effect we need to get the background path // - // to draw from the border part of the renderer. It will return a path that is // - // appropriate for use drawing within the border settings. // - ////////////////////////////////////////////////////////////////////////////////// - using (GraphicsPath path = renderer.RenderStandardBorder.GetBackPath(renderContext, - innerRect, - _paletteBorder, - Orientation, - buttonState)) - { - // Ask renderer to draw the background - _mementoBack2 = renderer.RenderStandardBack.DrawBack(renderContext, innerRect, path, _paletteBack, - Orientation, buttonState, _mementoBack2); - } - } - - // Do we need to draw the border? - if (_paletteBorder.GetBorderDraw(buttonState) == InheritBool.True) - { - // Now we draw the border of the inner area, also in ButtonStandalone style - renderer.RenderStandardBorder.DrawBorder(renderContext, innerRect, _paletteBorder, Orientation, buttonState); - } - - // Do we need to draw the content? - if (_paletteContent.GetContentDraw(buttonState) == InheritBool.True) - { - // Last of all we draw the content over the top of the border and background - renderer.RenderStandardContent.DrawContent(renderContext, innerRect, - _paletteContent, _mementoContent, - Orientation, buttonState, false, false, true); - } + // Last of all we draw the content over the top of the border and background + renderer.RenderStandardContent.DrawContent(renderContext, innerRect, + _paletteContent, _mementoContent, + Orientation, buttonState, false, false, true); } } @@ -286,17 +280,17 @@ private void OnGlobalPaletteChanged(object sender, EventArgs e) // Unhook events from old palette if (_palette != null) { - _palette.PalettePaint -= new EventHandler(OnPalettePaint); + _palette.PalettePaint -= OnPalettePaint; } - // Cache the new IPalette that is the global palette + // Cache the new PaletteBase that is the global palette _palette = KryptonManager.CurrentGlobalPalette; _paletteRedirect.Target = _palette; // Hook into events for the new palette if (_palette != null) { - _palette.PalettePaint += new EventHandler(OnPalettePaint); + _palette.PalettePaint += OnPalettePaint; } // Change of palette means we should repaint to show any changes @@ -312,7 +306,7 @@ private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) => public Color GetImageTransparentColor(PaletteState state) => Color.Empty; - public string GetLongText() => "Click me!"; + public string GetLongText() => @"Click me!"; public string GetShortText() => string.Empty; diff --git a/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln.DotSettings b/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln.DotSettings index 11686955..aa5a1280 100644 --- a/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln.DotSettings +++ b/Source/Krypton Toolkit Examples/Krypton Toolkit Examples 2022 (Debug) - Dev.sln.DotSettings @@ -1,2 +1,5 @@  - <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> \ No newline at end of file + QAT + <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> + True + True \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Form1.Designer.cs index 90a6711b..2c2caa25 100644 --- a/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Form1.Designer.cs @@ -74,12 +74,12 @@ private void InitializeComponent() this.buttonSparkle = new System.Windows.Forms.Button(); this.buttonCustom = new System.Windows.Forms.Button(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonPalette(); - this.kryptonPaletteOffice2010Blue = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSparkle = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSystem = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(); + this.kryptonPaletteOffice2010Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSparkle = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSystem = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.panelButtonHost.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonCheckSet)).BeginInit(); this.groupBoxBorderEdge.SuspendLayout(); @@ -1608,17 +1608,17 @@ private void InitializeComponent() private System.Windows.Forms.Button buttonSystem; private System.Windows.Forms.Button buttonSparkle; private Krypton.Toolkit.KryptonManager kryptonManager; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSparkle; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSystem; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSparkle; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSystem; private System.Windows.Forms.Button buttonOffice2010Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Blue; private Krypton.Toolkit.KryptonBorderEdge kryptonBorderEdge4; private Krypton.Toolkit.KryptonBorderEdge kryptonBorderEdge3; private Krypton.Toolkit.KryptonBorderEdge kryptonBorderEdge2; private Krypton.Toolkit.KryptonBorderEdge kryptonBorderEdge1; private System.Windows.Forms.Button buttonOffice2007Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2010Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2010Blue; } } diff --git a/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Form1.Designer.cs index f55e2ed9..25fac348 100644 --- a/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Form1.Designer.cs @@ -233,7 +233,7 @@ private void InitializeComponent() this.kryptonBreadCrumbItem40 = new Krypton.Toolkit.KryptonBreadCrumbItem(); this.kryptonBreadCrumbItem41 = new Krypton.Toolkit.KryptonBreadCrumbItem(); this.kryptonManager1 = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.groupBox1.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox2.SuspendLayout(); @@ -1298,7 +1298,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonContextMenuItem menuSpider; private Krypton.Toolkit.KryptonContextMenuItem menuKangeroo; private Krypton.Toolkit.KryptonContextMenuItem menuFern; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Blue; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.PropertyGrid propertyGrid; private System.Windows.Forms.Button buttonClose; diff --git a/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Form1.Designer.cs index 2746c6e8..75705f09 100644 --- a/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Form1.Designer.cs @@ -46,7 +46,7 @@ private void InitializeComponent() this.imageList = new System.Windows.Forms.ImageList(this.components); this.kryptonCheckSet = new Krypton.Toolkit.KryptonCheckSet(this.components); this.kryptonManager1 = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonPalette(); + this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(); this.groupBox1.SuspendLayout(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonCheckSet)).BeginInit(); @@ -296,7 +296,7 @@ private void InitializeComponent() private System.Windows.Forms.ImageList imageList; private Krypton.Toolkit.KryptonCheckSet kryptonCheckSet; private Krypton.Toolkit.KryptonManager kryptonManager1; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Blue; } } diff --git a/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Form1.Designer.cs index 56fec976..1d1aa46c 100644 --- a/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Form1.Designer.cs @@ -72,7 +72,7 @@ private void InitializeComponent() this.kryptonContextMenuColorColumns1 = new Krypton.Toolkit.KryptonContextMenuColorColumns(); this.kryptonContextMenuImageSelect1 = new Krypton.Toolkit.KryptonContextMenuImageSelect(); this.kryptonContextMenuMonthCalendar1 = new Krypton.Toolkit.KryptonContextMenuMonthCalendar(); - this.kryptonPalette = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPalette = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); this.colDateTime = new Krypton.Toolkit.KryptonDataGridViewDateTimePickerColumn(); this.colComboBox = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn(); @@ -686,7 +686,7 @@ private void InitializeComponent() private System.Windows.Forms.RadioButton rbStyleSheet; private System.Data.DataSet dataSet; private System.Data.DataTable dtTestData; - private Krypton.Toolkit.KryptonPalette kryptonPalette; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPalette; private Krypton.Toolkit.KryptonManager kryptonManager; private System.Windows.Forms.GroupBox groupBox1; private Krypton.Toolkit.KryptonButton buttonRandomCellColors; diff --git a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.Designer.cs index efa9776d..51b04d7e 100644 --- a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.Designer.cs @@ -49,7 +49,7 @@ private void InitializeComponent() this.groupBoxNormal = new System.Windows.Forms.GroupBox(); this.dtpRibbonTime = new Krypton.Toolkit.KryptonDateTimePicker(); this.buttonSpecAny2 = new Krypton.Toolkit.ButtonSpecAny(); - this.kryptonPalette = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPalette = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.dtpRibbonShort = new Krypton.Toolkit.KryptonDateTimePicker(); this.dtpRibbonLong = new Krypton.Toolkit.KryptonDateTimePicker(); this.dtpNormalTime = new Krypton.Toolkit.KryptonDateTimePicker(); @@ -405,7 +405,7 @@ private void InitializeComponent() private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.PropertyGrid propertyGrid; private System.Windows.Forms.Button buttonClose; - private Krypton.Toolkit.KryptonPalette kryptonPalette; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPalette; private System.Windows.Forms.GroupBox groupBoxRibbon; private System.Windows.Forms.GroupBox groupBoxNormal; private Krypton.Toolkit.KryptonDateTimePicker dtpRibbonTime; diff --git a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.cs index 020838f4..d6e01d32 100644 --- a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Form1.cs @@ -397,7 +397,7 @@ public PaletteMode PaletteMode [Category("Visuals - DateTimePicker")] [Description("Custom palette applied to drawing.")] [DefaultValue(null)] - public IPalette Palette + public PaletteBase Palette { get => _dateTimePicker.Palette; set => _dateTimePicker.Palette = value; diff --git a/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Form1.Designer.cs index 20e09309..b51631a7 100644 --- a/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Form1.Designer.cs @@ -68,7 +68,7 @@ private void InitializeComponent() this.groupBox4 = new System.Windows.Forms.GroupBox(); this.propertyGrid = new System.Windows.Forms.PropertyGrid(); this.kryptonManager1 = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPalette = new Krypton.Toolkit.KryptonPalette(); + this.kryptonPalette = new Krypton.Toolkit.KryptonCustomPaletteBase(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); @@ -871,7 +871,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonContextMenuItem kryptonContextMenuItem9; private Krypton.Toolkit.KryptonContextMenuItem kryptonContextMenuItem10; private Krypton.Toolkit.KryptonContextMenuItem kryptonContextMenuItem11; - private Krypton.Toolkit.KryptonPalette kryptonPalette; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPalette; } } diff --git a/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Form1.Designer.cs index 11a72393..39abd93c 100644 --- a/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Form1.Designer.cs @@ -46,7 +46,7 @@ private void InitializeComponent() this.groupBox4 = new System.Windows.Forms.GroupBox(); this.propertyGrid = new System.Windows.Forms.PropertyGrid(); this.kryptonMonthCalendar1 = new Krypton.Toolkit.KryptonMonthCalendar(); - this.kryptonPalette = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPalette = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.kryptonManager1 = new Krypton.Toolkit.KryptonManager(this.components); this.groupBoxPalette.SuspendLayout(); this.groupBox4.SuspendLayout(); @@ -291,7 +291,7 @@ private void InitializeComponent() private System.Windows.Forms.RadioButton rbSparklePurple; private System.Windows.Forms.RadioButton rbSparkleOrange; private Krypton.Toolkit.KryptonMonthCalendar kryptonMonthCalendar1; - private Krypton.Toolkit.KryptonPalette kryptonPalette; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPalette; private System.Windows.Forms.RadioButton rbOffice2010Black; private System.Windows.Forms.RadioButton rbOffice2010Silver; private System.Windows.Forms.RadioButton rbOffice2010Blue; diff --git a/Source/Krypton Toolkit Examples/KryptonPalette Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonPalette Examples/Form1.Designer.cs index c63927d9..27760746 100644 --- a/Source/Krypton Toolkit Examples/KryptonPalette Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonPalette Examples/Form1.Designer.cs @@ -102,19 +102,19 @@ private void InitializeComponent() this.buttonCustom = new System.Windows.Forms.Button(); this.buttonSystem = new System.Windows.Forms.Button(); this.buttonOffice2003 = new System.Windows.Forms.Button(); - this.kryptonPaletteOffice2003 = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteOffice2003 = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSystem = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2007Silver = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2007Black = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSparkleBlue = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSparklePurple = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteSparkleOrange = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2010Blue = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2010Silver = new Krypton.Toolkit.KryptonPalette(this.components); - this.kryptonPaletteOffice2010Black = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteOffice2007Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSystem = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2007Silver = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2007Black = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSparkleBlue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSparklePurple = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteSparkleOrange = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2010Blue = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2010Silver = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); + this.kryptonPaletteOffice2010Black = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.groupBox4.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); @@ -1472,7 +1472,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonGroup kryptonGroup1; private Krypton.Toolkit.KryptonLabel kryptonLabel2; private Krypton.Toolkit.KryptonLabel kryptonLabel1; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2003; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2003; private Krypton.Toolkit.KryptonManager kryptonManager; private Krypton.Toolkit.KryptonPanel kryptonPanel1; private System.Windows.Forms.MenuStrip menuStrip1; @@ -1516,23 +1516,23 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripButton toolStripButton1; private System.Windows.Forms.ToolStripButton toolStripButton2; private Krypton.Toolkit.KryptonCheckButton kryptonCheckButton1; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSystem; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Silver; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2007Black; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSystem; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Silver; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2007Black; private System.Windows.Forms.Button buttonSparkleBlue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSparkleBlue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSparkleBlue; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button1; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSparklePurple; - private Krypton.Toolkit.KryptonPalette kryptonPaletteSparkleOrange; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSparklePurple; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteSparkleOrange; private System.Windows.Forms.Button buttonOffice2010Black; private System.Windows.Forms.Button buttonOffice2010Silver; private System.Windows.Forms.Button buttonOffice2010Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2010Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2010Silver; - private Krypton.Toolkit.KryptonPalette kryptonPaletteOffice2010Black; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2010Blue; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2010Silver; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteOffice2010Black; private System.Windows.Forms.Button btnExport; private System.Windows.Forms.Button btnImportCustomPalette; } diff --git a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.Designer.cs index 9222d575..4d3e5ba2 100644 --- a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.Designer.cs @@ -53,7 +53,7 @@ private void InitializeComponent() this.kryptonOffice2007Silver = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonOffice2007Blue = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); @@ -502,7 +502,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Black; private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Silver; private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Blue; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; private Krypton.Toolkit.KryptonButton btnSingleLines; private Krypton.Toolkit.KryptonButton btnCarriageReturns; private Krypton.Toolkit.KryptonButton btnStackTrace; diff --git a/Source/Krypton Toolkit Examples/Test Text Clipping/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Test Text Clipping/Form1.Designer.cs index f4e18251..3b17bb9a 100644 --- a/Source/Krypton Toolkit Examples/Test Text Clipping/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Test Text Clipping/Form1.Designer.cs @@ -89,7 +89,7 @@ private void InitializeComponent() this.kryptonOffice2007Silver = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonOffice2007Blue = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.kryptonRadioButton1 = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonRadioButton2 = new Krypton.Toolkit.KryptonRadioButton(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelMain)).BeginInit(); @@ -839,7 +839,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonPanel kryptonPanelMain; private Krypton.Toolkit.KryptonHeaderGroup kryptonHeaderGroupDetails; private Krypton.Toolkit.KryptonManager kryptonManager; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; private Krypton.Toolkit.KryptonGroup kryptonGroup1; private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Black; private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Silver; diff --git a/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Form1.Designer.cs index 8b9c731c..3cd2afbf 100644 --- a/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Form1.Designer.cs @@ -93,7 +93,7 @@ private void InitializeComponent() this.kryptonOffice2007Blue = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonOffice2013White = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(this.components); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(this.components); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(this.components); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.kryptonRadioButton1 = new Krypton.Toolkit.KryptonRadioButton(); this.kryptonRadioButton2 = new Krypton.Toolkit.KryptonRadioButton(); @@ -1035,7 +1035,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonHeaderGroup kryptonHeaderGroupDetails; private Krypton.Toolkit.KryptonGroup kryptonButtonGroup; private Krypton.Toolkit.KryptonManager kryptonManager; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; private Krypton.Toolkit.KryptonGroup kryptonGroup1; private System.Windows.Forms.StatusStrip statusStrip1; private Krypton.Toolkit.KryptonRadioButton kryptonOffice2007Black; diff --git a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.Designer.cs index a9fb78e2..6f86a63c 100644 --- a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.Designer.cs @@ -115,7 +115,7 @@ private void InitializeComponent() this.colCategory = new System.Data.DataColumn(); this.dataColumn1 = new System.Data.DataColumn(); this.kryptonManager = new Krypton.Toolkit.KryptonManager(); - this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonPalette(); + this.kryptonPaletteCustom = new Krypton.Toolkit.KryptonCustomPaletteBase(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.menuStrip.SuspendLayout(); this.toolStripGeneral.SuspendLayout(); @@ -1601,7 +1601,7 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonHeaderGroup kryptonHeaderGroupDetails; private Krypton.Toolkit.KryptonGroup kryptonReadingGroupOuter; private Krypton.Toolkit.KryptonManager kryptonManager; - private Krypton.Toolkit.KryptonPalette kryptonPaletteCustom; + private Krypton.Toolkit.KryptonCustomPaletteBase kryptonPaletteCustom; private System.Windows.Forms.ImageList imageList; private Krypton.Toolkit.KryptonLabel kryptonReadingLabel; private System.Windows.Forms.ToolStripMenuItem loadPaletteToolStripMenuItem; diff --git a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.cs b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.cs index e5c365a2..a5ab28e4 100644 --- a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.cs +++ b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Form1.cs @@ -341,7 +341,7 @@ private void kryptonDataGridView_SelectionChanged(object sender, EventArgs e) private void loadPaletteToolStripMenuItem_Click(object sender, EventArgs e) { // Create a new palette for the importing - KryptonPalette newPalette = new KryptonPalette(); + KryptonCustomPaletteBase newPalette = new KryptonCustomPaletteBase(); // If the user managed to load a palette file if (newPalette.Import().Length > 0)