fix RadButtonItem -=> RadButtonElement

This commit is contained in:
2024-10-15 11:44:42 +02:00
parent 3d75bb23c5
commit 7f785cb0c3
2 changed files with 3 additions and 1 deletions

View File

@@ -34,9 +34,10 @@ public static class Extensions
public static RadButtonItem GetAsItem(this PluginFeature module, EventHandler? clickHandler, PluginButtonType buttonType = PluginButtonType.RadMenuItem) public static RadButtonItem GetAsItem(this PluginFeature module, EventHandler? clickHandler, PluginButtonType buttonType = PluginButtonType.RadMenuItem)
{ {
var item = buttonType switch RadButtonItem item = buttonType switch
{ {
PluginButtonType.RadMenuItem => new RadMenuItem(), PluginButtonType.RadMenuItem => new RadMenuItem(),
PluginButtonType.RadButtonElement => new RadButtonElement(),
PluginButtonType.RadButtonItem => new RadButtonItem(), PluginButtonType.RadButtonItem => new RadButtonItem(),
_ => throw new NotSupportedException(), _ => throw new NotSupportedException(),
}; };

View File

@@ -3,5 +3,6 @@
public enum PluginButtonType public enum PluginButtonType
{ {
RadMenuItem, RadMenuItem,
RadButtonElement,
RadButtonItem, RadButtonItem,
} }