using System; using System.Windows.Input; namespace Gestor.Application.ViewModels.Command; public class RelayCommand : ICommand { private Action mAction; public event EventHandler CanExecuteChanged = delegate { }; public RelayCommand(Action action) { mAction = action; } public bool CanExecute(object parameter) { return true; } public void Execute(object parameter) { mAction(); } }