Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created January 9, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/e070880c70e5b77efaa3d24940aa7862 to your computer and use it in GitHub Desktop.
Save kevingosse/e070880c70e5b77efaa3d24940aa7862 to your computer and use it in GitHub Desktop.
private class DmlCommand : ICommand
{
private readonly Action _command;
public DmlCommand(Action command)
{
_command = command;
}
public event EventHandler CanExecuteChanged;
public bool CanExecute(object parameter) => true;
public void Execute(object parameter) => _command();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment