Commands auf Async umgestellt
This commit is contained in:
@@ -4,9 +4,8 @@ using System.Windows.Input;
|
||||
|
||||
namespace DaSaSo.ViewModel.Commands
|
||||
{
|
||||
class UpdateCurrentViewModelCommand : ICommand
|
||||
class UpdateCurrentViewModelCommand : AsyncCommandBase
|
||||
{
|
||||
public event EventHandler? CanExecuteChanged;
|
||||
private INavigator _navigator;
|
||||
private readonly IViewModelAbstractFactory _viewModelFactory;
|
||||
|
||||
@@ -16,12 +15,9 @@ namespace DaSaSo.ViewModel.Commands
|
||||
_viewModelFactory = viewModelFactory;
|
||||
}
|
||||
|
||||
public bool CanExecute(object? parameter)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public void Execute(object? parameter)
|
||||
public override async Task ExecuteAsync(object? parameter)
|
||||
{
|
||||
if(parameter is EViewType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user