© 2026 Hedgehog Software, LLC
public RelayCommand(Action<object> execute) : this(execute, null)
public class RelayCommand : ICommand { public RelayCommand(Action<object> execute, Predicate<object> canExecute) { if (execute == null) throw new ArgumentNullException("execute"); _execute = execute; _canExecute = canExecute; } public RelayCommand(Action<object> execute) : this(execute, null) { } }