Files
elwig/Elwig/Helpers/ActionCommand.cs
T
lorenz.stechauner 2cc58f8df6
Test / Run tests (push) Successful in 2m29s
Elwig: Fix most compiler warnings
2026-11-24 19:37:13 +01:00

19 lines
410 B
C#

using System;
using System.Windows.Input;
namespace Elwig.Helpers {
public class ActionCommand(Action action) : ICommand {
public event EventHandler? CanExecuteChanged;
private readonly Action Action = action;
public void Execute(object? parameter) {
Action();
}
public bool CanExecute(object? parameter) {
return true;
}
}
}