Exemple #1
0
 public IViewModelCommand CreateCommand(string name, Func <object, Task> executeMethod, Func <object, bool> canExecuteMethod, Action <Task, Exception> exceptionHandlerMethod)
 {
     return(this[name] = new ViewModelCommand(executeMethod, canExecuteMethod, exceptionHandlerMethod));
 }
Exemple #2
0
 public IViewModelCommand CreateCommand(string name, Action executeMethod)
 {
     return(this[name] = new ViewModelCommand(executeMethod));
 }
Exemple #3
0
 public IViewModelCommand CreateCommand(string name, Action <object> executeMethod, Func <object, bool> canExecuteMethod)
 {
     return(this[name] = new ViewModelCommand(executeMethod, canExecuteMethod));
 }
Exemple #4
0
 public IViewModelCommand CreateCommand(string name)
 {
     return(this[name] = new ViewModelCommand(() => { }));
 }