21 lines
682 B
C#
21 lines
682 B
C#
using Toolkit.Foundation;
|
|
|
|
namespace Wallet;
|
|
|
|
[Notification(typeof(NotifyEventArgs<Item<int>>), "All")]
|
|
public partial class AllNavigationViewModel(IServiceProvider provider,
|
|
IServiceFactory factory, IMediator mediator,
|
|
IPublisher publisher, ISubscription subscriber, IDisposer disposer, int key, string value) :
|
|
FilterNavigationViewModel(provider, factory, mediator, publisher, subscriber, disposer, key, value),
|
|
INotificationHandler<NotifyEventArgs<Item<int>>>
|
|
{
|
|
public Task Handle(NotifyEventArgs<Item<int>> args)
|
|
{
|
|
if (args.Sender is Item<int> item)
|
|
{
|
|
Key = item.Value;
|
|
}
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
} |