diff --git a/src/NotifyIconWpf.Sample.ShowCases/Tutorials/06 - Commands/ShowMessageCommand.cs b/src/NotifyIconWpf.Sample.ShowCases/Tutorials/06 - Commands/ShowMessageCommand.cs index 7aac104..f108317 100644 --- a/src/NotifyIconWpf.Sample.ShowCases/Tutorials/06 - Commands/ShowMessageCommand.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/Tutorials/06 - Commands/ShowMessageCommand.cs @@ -20,6 +20,10 @@ namespace NotifyIconWpf.Sample.ShowCases.Tutorials return true; } - public event EventHandler CanExecuteChanged; + public event EventHandler CanExecuteChanged + { + add => CommandManager.RequerySuggested += value; + remove => CommandManager.RequerySuggested -= value; + } } } \ No newline at end of file