예제 #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));
 }
예제 #2
0
 public IViewModelCommand CreateCommand(string name, Action executeMethod)
 {
     return(this[name] = new ViewModelCommand(executeMethod));
 }
예제 #3
0
 public IViewModelCommand CreateCommand(string name, Action <object> executeMethod, Func <object, bool> canExecuteMethod)
 {
     return(this[name] = new ViewModelCommand(executeMethod, canExecuteMethod));
 }
예제 #4
0
 public IViewModelCommand CreateCommand(string name)
 {
     return(this[name] = new ViewModelCommand(() => { }));
 }