This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using DTS.Common.Interface.Menu.HamburgerMenu;
using System;
using System.Windows.Input;
namespace HamburgerMenu.Model
{
/// <summary>
/// this is a simple menu command handler that just notifies when the command is executed
/// </summary>
public class MenuCommand : ICommand
{
public event EventHandler CanExecuteChanged;
public bool CanExecute(object parameter)
{
return true;
}
public void Execute(object parameter)
{
MenuItemPressed?.Invoke(Id);
}
private readonly MenuItemPressedDelegate MenuItemPressed;
private readonly string Id;
public MenuCommand(string id, MenuItemPressedDelegate menuItemPressed)
{
Id = id;
MenuItemPressed = menuItemPressed;
}
}
}