Some refactoring

This commit is contained in:
TheXamlGuy
2024-06-09 22:41:58 +01:00
parent b5f125546f
commit be6924f49e
37 changed files with 204 additions and 107 deletions
+8 -7
View File
@@ -16,16 +16,17 @@ public partial class ItemCommandHeaderViewModel(IServiceProvider provider,
public Task Handle(NotifyEventArgs<ItemCommandHeaderCollection> args)
{
Clear();
if (args.Value is ItemCommandHeaderCollection commandCollection)
if (args.Sender is ItemCommandHeaderCollection commandCollection)
{
foreach (IDisposable command in commandCollection)
Clear(args =>
{
Add(command);
}
foreach (IDisposable command in commandCollection)
{
args.Add(command);
}
});
}
return Task.CompletedTask;
}
}