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