Example #1
0
 public bool CanExecute(object parameter)
 {
     return(CanExcuteHandler?.Invoke(parameter) ?? false);
 }
Example #2
0
 internal Command(ExcuteHandler excute, CanExcuteHandler canExcute = null)
 {
     ExcuteHandler     = excute;
     CanExcuteHandler  = canExcute;
     CanExecuteChanged = OnCanExecuteChanged;
 }