From 9353581a56817cc9b513878833adfb214c8cff0a Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 16 Mar 2024 13:42:08 +0100 Subject: [PATCH] ActionCommand: Small fixes to avoid warnings --- Elwig/Helpers/ActionCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Elwig/Helpers/ActionCommand.cs b/Elwig/Helpers/ActionCommand.cs index d2058a5..31f97c1 100644 --- a/Elwig/Helpers/ActionCommand.cs +++ b/Elwig/Helpers/ActionCommand.cs @@ -4,18 +4,18 @@ using System.Windows.Input; namespace Elwig.Helpers { public class ActionCommand : ICommand { - public event EventHandler CanExecuteChanged; + public event EventHandler? CanExecuteChanged; private readonly Action Action; public ActionCommand(Action action) { Action = action; } - public void Execute(object parameter) { + public void Execute(object? parameter) { Action(); } - public bool CanExecute(object parameter) { + public bool CanExecute(object? parameter) { return true; } }