Created
July 26, 2018 11:38
-
-
Save andreaGhisa/2b0cf53eec00b462272f7558b6807ce0 to your computer and use it in GitHub Desktop.
IStudioNotificationCommand
This file contains 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
public class InSourceCommand : IStudioNotificationCommand | |
{ | |
private readonly Action action; | |
public InSourceCommand(Action action) | |
{ | |
this.action = action; | |
} | |
public event EventHandler CanExecuteChanged; | |
public bool CanExecute(object parameter) | |
{ | |
return true; | |
} | |
public void Execute(object parameter) | |
{ | |
action(); | |
} | |
public string CommandText { get; set; } | |
public string CommandToolTip { get; set; } | |
public Icon CommandIcon { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment