Created
January 9, 2018 15:09
-
-
Save kevingosse/e070880c70e5b77efaa3d24940aa7862 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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