コード例 #1
0
 public virtual bool CanExecute(object parameter)
 {
     //can have extra things that runj before even running this (but not yet).
     if (CommandContainer.IsExecuting == true && BusyCategory == EnumCommandBusyCategory.None)
     {
         return(false);
     }
     if (CommandContainer.Processing == true && BusyCategory == EnumCommandBusyCategory.Limited)
     {
         return(false);
     }
     return(_model.CanExecute());
 }