|
|
@@ -12,9 +12,9 @@ namespace Ryujinx.Ava.UI.Helpers
|
|
|
public static RelayCommand CreateConditional(Action action, Func<bool> canExecute)
|
|
|
=> new(action, canExecute);
|
|
|
|
|
|
- public static RelayCommand<T> CreateWithArg<T>(Action<T?> action)
|
|
|
+ public static RelayCommand<T> Create<T>(Action<T?> action)
|
|
|
=> new(action);
|
|
|
- public static RelayCommand<T> CreateConditionalWithArg<T>(Action<T?> action, Predicate<T?> canExecute)
|
|
|
+ public static RelayCommand<T> CreateConditional<T>(Action<T?> action, Predicate<T?> canExecute)
|
|
|
=> new(action, canExecute);
|
|
|
|
|
|
public static AsyncRelayCommand Create(Func<Task> action)
|
|
|
@@ -24,11 +24,11 @@ namespace Ryujinx.Ava.UI.Helpers
|
|
|
public static AsyncRelayCommand CreateSilentFail(Func<Task> action)
|
|
|
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
|
|
|
|
|
- public static AsyncRelayCommand<T> CreateWithArg<T>(Func<T?, Task> action)
|
|
|
+ public static AsyncRelayCommand<T> Create<T>(Func<T?, Task> action)
|
|
|
=> new(action, AsyncRelayCommandOptions.None);
|
|
|
- public static AsyncRelayCommand<T> CreateConcurrentWithArg<T>(Func<T?, Task> action)
|
|
|
+ public static AsyncRelayCommand<T> CreateConcurrent<T>(Func<T?, Task> action)
|
|
|
=> new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
|
|
- public static AsyncRelayCommand<T> CreateSilentFailWithArg<T>(Func<T?, Task> action)
|
|
|
+ public static AsyncRelayCommand<T> CreateSilentFail<T>(Func<T?, Task> action)
|
|
|
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
|
|
|
|
|
public static AsyncRelayCommand CreateConditional(Func<Task> action, Func<bool> canExecute)
|
|
|
@@ -38,11 +38,11 @@ namespace Ryujinx.Ava.UI.Helpers
|
|
|
public static AsyncRelayCommand CreateSilentFailConditional(Func<Task> action, Func<bool> canExecute)
|
|
|
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
|
|
|
|
|
- public static AsyncRelayCommand<T> CreateConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
+ public static AsyncRelayCommand<T> CreateConditional<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
=> new(action, canExecute, AsyncRelayCommandOptions.None);
|
|
|
- public static AsyncRelayCommand<T> CreateConcurrentConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
+ public static AsyncRelayCommand<T> CreateConcurrentConditional<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
=> new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
|
|
- public static AsyncRelayCommand<T> CreateSilentFailConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
+ public static AsyncRelayCommand<T> CreateSilentFailConditional<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
|
|
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
|
|
}
|
|
|
}
|