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