Skip to content

Commit

Permalink
build(deps): bump BB84.Notifications from 3.1.415 to 3.2.421 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoBaSs84 authored Apr 22, 2024
2 parents 2d9de88 + 8e6c19f commit 0fcf75b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<ItemGroup>
<PackageVersion Include="BB84.Extensions" Version="2.3.421" />
<PackageVersion Include="BB84.Notifications" Version="3.1.415" />
<PackageVersion Include="BB84.Notifications" Version="3.2.421" />
<PackageVersion Include="DotNetProjects.Extended.Wpf.Toolkit" Version="5.0.115" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.3.1" />
<PackageVersion Include="MSTest.TestFramework" Version="3.3.1" />
Expand Down
16 changes: 8 additions & 8 deletions src/QrCode.Generator/ViewModels/Base/QrCodeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System.Windows.Media;
using System.Windows.Media.Imaging;

using BB84.Notifications;
using BB84.Notifications.Interfaces;
using BB84.Notifications.Commands;
using BB84.Notifications.Interfaces.Commands;

using QrCode.Generator.Interfaces.Services;
using QrCode.Generator.Models.Base;
Expand All @@ -22,8 +22,8 @@ namespace QrCode.Generator.ViewModels.Base;
/// <param name="qrCodeService">The QR code service instance to use.</param>
public abstract class QrCodeViewModel(IQrCodeService qrCodeService) : ViewModelBase
{
private IRelayCommand<QrCodeModel>? _createCommand;
private IRelayCommand<QrCodeModel>? _copyCommand;
private IActionCommand<QrCodeModel>? _createCommand;
private IActionCommand<QrCodeModel>? _copyCommand;
private Image _qrCodeImage = new();
private string _payload = string.Empty;

Expand Down Expand Up @@ -54,14 +54,14 @@ public Tuple<string, ECCLevel>[] ErrorCorrectionLevels
/// <summary>
/// The command to create or update the QR code.
/// </summary>
public IRelayCommand<QrCodeModel> CreateCommand
=> _createCommand ??= new RelayCommand<QrCodeModel>(UpdateQrCode);
public IActionCommand<QrCodeModel> CreateCommand
=> _createCommand ??= new ActionCommand<QrCodeModel>(UpdateQrCode);

/// <summary>
/// The command for copying the QR code.
/// </summary>
public IRelayCommand<QrCodeModel> CopyCommand
=> _copyCommand ??= new RelayCommand<QrCodeModel>(CopyQrCode);
public IActionCommand<QrCodeModel> CopyCommand
=> _copyCommand ??= new ActionCommand<QrCodeModel>(CopyQrCode);

/// <summary>
/// Sets the payload to encode.
Expand Down
40 changes: 20 additions & 20 deletions src/QrCode.Generator/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BB84.Notifications;
using BB84.Notifications.Interfaces;
using BB84.Notifications.Commands;
using BB84.Notifications.Interfaces.Commands;

using QrCode.Generator.Interfaces.Services;
using QrCode.Generator.ViewModels.Base;
Expand All @@ -15,12 +15,12 @@ namespace QrCode.Generator.ViewModels;
/// <param name="navigationService">The navigation service instance to use.</param>
public sealed class MainViewModel(INavigationService navigationService) : ViewModelBase
{
private IRelayCommand? _aboutCommand;
private IRelayCommand? _contactCommand;
private IRelayCommand? _exitCommand;
private IRelayCommand? _eventCommand;
private IRelayCommand? _giroCommand;
private IRelayCommand? _wifiCommand;
private IActionCommand? _aboutCommand;
private IActionCommand? _contactCommand;
private IActionCommand? _exitCommand;
private IActionCommand? _eventCommand;
private IActionCommand? _giroCommand;
private IActionCommand? _wifiCommand;

/// <summary>
/// The navigation service instance.
Expand All @@ -31,36 +31,36 @@ public INavigationService NavigationService
/// <summary>
/// The command to show the about control.
/// </summary>
public IRelayCommand AboutCommand
=> _aboutCommand ??= new RelayCommand(NavigationService.NavigateTo<AboutViewModel>);
public IActionCommand AboutCommand
=> _aboutCommand ??= new ActionCommand(NavigationService.NavigateTo<AboutViewModel>);

/// <summary>
/// The command to show the contact code control.
/// </summary>
public IRelayCommand ContactCommand
=> _contactCommand ??= new RelayCommand(NavigationService.NavigateTo<ContactDataViewModel>);
public IActionCommand ContactCommand
=> _contactCommand ??= new ActionCommand(NavigationService.NavigateTo<ContactDataViewModel>);

/// <summary>
/// The command to exit the application.
/// </summary>
public IRelayCommand ExitCommand
=> _exitCommand ??= new RelayCommand(() => Environment.Exit(1));
public IActionCommand ExitCommand
=> _exitCommand ??= new ActionCommand(() => Environment.Exit(1));

/// <summary>
/// The command to show the event code control.
/// </summary>
public IRelayCommand EventCommand
=> _eventCommand ??= new RelayCommand(NavigationService.NavigateTo<EventCodeViewModel>);
public IActionCommand EventCommand
=> _eventCommand ??= new ActionCommand(NavigationService.NavigateTo<EventCodeViewModel>);

/// <summary>
/// The command to show the giro code control.
/// </summary>
public IRelayCommand GiroCommand
=> _giroCommand ??= new RelayCommand(NavigationService.NavigateTo<GiroCodeViewModel>);
public IActionCommand GiroCommand
=> _giroCommand ??= new ActionCommand(NavigationService.NavigateTo<GiroCodeViewModel>);

/// <summary>
/// The command to show the wifi code control.
/// </summary>
public IRelayCommand WifiCommand
=> _wifiCommand ??= new RelayCommand(NavigationService.NavigateTo<WifiCodeViewModel>);
public IActionCommand WifiCommand
=> _wifiCommand ??= new ActionCommand(NavigationService.NavigateTo<WifiCodeViewModel>);
}

0 comments on commit 0fcf75b

Please sign in to comment.