示例#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(() => { }));
 }