fork download
  1. class Hoge : ICommand
  2. {
  3. private bool _IsEnabled;
  4.  
  5. bool IsEnabled
  6. {
  7. get
  8. {
  9. return _IsEnabled;
  10. }
  11. set
  12. {
  13. if(value!=_IsEnabled)
  14. {
  15. _isEnabled =value;
  16. if(CanExecuteChanged!=null)
  17. {
  18. CanExecuteChanged(this, EventArgs.Empty);
  19. }
  20. }
  21. }
  22. }
  23.  
  24. bool ICommand.CanExecute(object p)
  25. {
  26. return _isEnabled;
  27. }
  28. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty