Codemaid
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Wallet;
|
||||
|
||||
public class TextEntryViewModelHandler(IServiceFactory serviceFactory) :
|
||||
public class TextEntryViewModelHandler(IServiceFactory serviceFactory) :
|
||||
IHandler<CreateEventArgs<TextEntryConfiguration>, IItemEntryViewModel?>
|
||||
{
|
||||
public Task<IItemEntryViewModel?> Handle(CreateEventArgs<TextEntryConfiguration> args,
|
||||
@@ -14,7 +14,7 @@ public class TextEntryViewModelHandler(IServiceFactory serviceFactory) :
|
||||
string? value = $"{configuration.Value}" ?? "";
|
||||
double? width = configuration.Width;
|
||||
|
||||
if (serviceFactory.Create<TextEntryViewModel>(args => args.Initialize(),
|
||||
if (serviceFactory.Create<TextEntryViewModel>(args => args.Initialize(),
|
||||
[.. args.Parameters, configuration, label, value, false, false, width])
|
||||
is TextEntryViewModel viewModel)
|
||||
{
|
||||
@@ -24,4 +24,4 @@ public class TextEntryViewModelHandler(IServiceFactory serviceFactory) :
|
||||
|
||||
return Task.FromResult<IItemEntryViewModel?>(default);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user