public static void TryExecute(this ViewModelCommandManager commandManager, string commandName)
 {
     commandManager.Get(commandName).TryExecute();
 }
 public static IViewModelCommand Get(this ViewModelCommandManager commandManager, [CallerMemberName] string name = null)
 {
     return(commandManager[name]);
 }
 public static IViewModelCommand CreateCommand(this ViewModelCommandManager commandManager, Func <object, Task> executeMethod, Func <object, bool> canExecuteMethod, Action <Task, Exception> exceptionHandlerMethod, [CallerMemberName] string name = null)
 {
     return(commandManager.CreateCommand(name, executeMethod, canExecuteMethod, exceptionHandlerMethod));
 }
 public static IViewModelCommand CreateCommand(this ViewModelCommandManager commandManager, Action executeMethod, Func <bool> canExecuteMethod, [CallerMemberName] string name = null)
 {
     return(commandManager.CreateCommand(name, executeMethod, canExecuteMethod));
 }
 public static IViewModelCommand CreateCommand(this ViewModelCommandManager commandManager, [CallerMemberName] string name = null)
 {
     return(commandManager.CreateCommand(name));
 }
 public static async Task TryExecuteAsync(this ViewModelCommandManager commandManager, string commandName, object arg)
 {
     await commandManager.Get(commandName).TryExecuteAsync(arg);
 }