Beispiel #1
0
 public CustomCommand(Func <Task> executeAsync, Func <bool> canExecute, string nameOfCommand, ISubViewModelBase subViewModelBase)
 {
     _executeAsync     = executeAsync;
     _nameOfCommand    = nameOfCommand;
     _relayCommand     = new RelayCommand(ExecuteWithLog, canExecute);
     _subViewModelBase = subViewModelBase;
 }
 public static CustomCommand CreateAsync(Func <Task> executeAsync, Func <bool> canExecute,
                                         string commandName, ISubViewModelBase subViewModelBase)
 {
     return(new CustomCommand(executeAsync, canExecute, commandName, subViewModelBase));
 }