Skip to content

Commit

Permalink
* Resolve #665
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Mar 17, 2022
1 parent 76de815 commit 5895bf6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
1 change: 1 addition & 0 deletions Documents/Help/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 2022-04-04 - Build 2204 - April 2022
* Resolved [#673](https://github.com/Krypton-Suite/Standard-Toolkit/issues/673), `KryptonRibbonGroup` does not have entries for either `StateContextPressed` or `StateContextTracking`
* Resolved [#665](https://github.com/Krypton-Suite/Standard-Toolkit/issues/665), Breadcrumb - Cannot Add items to Root via the designer
* Implemented [#640](https://github.com/Krypton-Suite/Standard-Toolkit/issues/640), KForm add an option to align the title text.
* Resolved [#646](https://github.com/Krypton-Suite/Standard-Toolkit/issues/646), When the ButtonSpecs are left aligned the System Menu icon does not react to the click event any more
* Resolved [#642](https://github.com/Krypton-Suite/Standard-Toolkit/issues/642), Blurred window get left behind when focus is regained
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ namespace Krypton.Toolkit
[Designer("Krypton.Toolkit.KryptonBreadCrumbItemDesigner, Krypton.Toolkit")]
public class KryptonBreadCrumbItem : KryptonListItem
{
#region Type Definitons
#region Type Definitions
/// <summary>
/// Manages a collection of KryptonBreadCrumbItems
/// </summary>
[Editor(@"Krypton.Toolkit.KryptonBreadCrumbItemsEditor", typeof(UITypeEditor))]
[Editor(@"Krypton.Toolkit.KryptonBreadCrumbItemsEditor, Krypton.Toolkit", typeof(UITypeEditor))]
public class BreadCrumbItems : TypedCollection<KryptonBreadCrumbItem>
{
#region Instance Fields
Expand Down Expand Up @@ -215,7 +215,7 @@ public KryptonBreadCrumbItem(string shortText,

#region Public
/// <summary>
/// Gets access to the colletion of child items.
/// Gets access to the collection of child items.
/// </summary>
[Category(@"Data")]
[Description(@"Collection of child items.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3695,6 +3695,7 @@ private PaletteElementColor GetTrackBar(PaletteElement element, PaletteState sta
default:
// Should never happen!
Debug.Assert(false);
DebugTools.NotImplemented("GetTrackBar(PaletteElement element, PaletteState state)", "KryptonPalette.cs");
return null;
}
case PaletteElement.TrackBarTrack:
Expand All @@ -3709,6 +3710,7 @@ private PaletteElementColor GetTrackBar(PaletteElement element, PaletteState sta
default:
// Should never happen!
Debug.Assert(false);
DebugTools.NotImplemented("GetTrackBar(PaletteElement element, PaletteState state)", "KryptonPalette.cs");
return null;
}
case PaletteElement.TrackBarPosition:
Expand All @@ -3727,11 +3729,13 @@ private PaletteElementColor GetTrackBar(PaletteElement element, PaletteState sta
default:
// Should never happen!
Debug.Assert(false);
DebugTools.NotImplemented("GetTrackBar(PaletteElement element, PaletteState state)", "KryptonPalette.cs");
return null;
}
default:
// Should never happen!
Debug.Assert(false);
DebugTools.NotImplemented("GetTrackBar(PaletteElement element, PaletteState state)", "KryptonPalette.cs");
return null;
}
}
Expand Down
19 changes: 19 additions & 0 deletions Source/Krypton Components/Krypton.Toolkit/Tooling/DebugTools.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Krypton.Toolkit
{
internal static class DebugTools
{
#region Implementation
internal static void NotImplemented(string methodSignature, string className, int lineNumber = 0)
{
if (lineNumber > 0)
{
KryptonMessageBox.Show($"If you are seeing this message, please submit a new bug report at: https://github.com/Krypton-Suite/Standard-Toolkit/issues/new/choose.\n\nAdditional details:-\nMethod Signature: {methodSignature}\nClass Name: {className}\nLine Number: {lineNumber}", "Not Implemented", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
KryptonMessageBox.Show($"If you are seeing this message, please submit a new bug report at: https://github.com/Krypton-Suite/Standard-Toolkit/issues/new/choose.\n\nAdditional details:-\nMethod Signature: {methodSignature}\nClass Name: {className}", "Not Implemented", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
#endregion
}
}

0 comments on commit 5895bf6

Please sign in to comment.