Skip to content

Commit

Permalink
Updated nuget demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuatcowi committed Nov 4, 2024
1 parent 2b59106 commit b9a0b36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MVVMFluent.NugetDemo/MVVMFluent.NugetDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MVVMFluent.WPF" Version="0.0.1">
<PackageReference Include="MVVMFluent.WPF" Version="0.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions src/MVVMFluent.NugetDemo/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public string? Input
set => When(value).Required().Notify(AsyncCommand, OkCommand).Set();
}

public Command OkCommand => Do(() => ShowDialog(Input)).IfValid(nameof(Input));
public FluentCommand OkCommand => Do(() => ShowDialog(Input)).IfValid(nameof(Input));

private bool CanExecute()
{
Expand All @@ -27,7 +27,7 @@ private bool CanExecute()

public bool ThrowException { get => Get(false); set => Set(value); }

public AsyncCommand AsyncCommand => Do(ShowDialogAsync).If(CanExecute).Handle(HandleException).ConfigureAwait(false);
public AsyncFluentCommand AsyncCommand => Do(ShowDialogAsync).If(CanExecute).Handle(HandleException).ConfigureAwait(false);

private void HandleException(Exception exception)
{
Expand All @@ -54,7 +54,7 @@ private async Task ShowDialogAsync(CancellationToken cancellationToken)
ShowDialog(Input);
}

public Command<string> HelpCommand => Do<string>(ShowDialog);
public FluentCommand<string> HelpCommand => Do<string>(ShowDialog);

private void ShowDialog(string? input)
{
Expand Down

0 comments on commit b9a0b36

Please sign in to comment.