Corrected a build error
This commit is contained in:
@@ -14,13 +14,13 @@ namespace WpfViewModelFirst.Part1
|
|||||||
public Part1ViewModel(Func<Task> finishAction)
|
public Part1ViewModel(Func<Task> finishAction)
|
||||||
{
|
{
|
||||||
_finishAction = finishAction;
|
_finishAction = finishAction;
|
||||||
FinishCommand = new CustomCommand(o => Finish(o));
|
FinishCommand = new CustomCommand(Finish);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICommand FinishCommand { get; set; }
|
public ICommand FinishCommand { get; set; }
|
||||||
private Task Finish(object? e)
|
private void Finish(object? e)
|
||||||
{
|
{
|
||||||
return _finishAction.Invoke();
|
_finishAction.Invoke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user