20 lines
479 B
C#
20 lines
479 B
C#
using Hyperbar.Lifecycles;
|
|
using Hyperbar.Templates;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Hyperbar.Windows;
|
|
|
|
public partial class CommandViewModel :
|
|
ObservableCollectionViewModel,
|
|
ITemplatedViewModel
|
|
{
|
|
public CommandViewModel(ITemplateFactory templateFactory,
|
|
IEnumerable<ICommandWidgetViewModel> commands)
|
|
{
|
|
TemplateFactory = templateFactory;
|
|
AddRange(commands);
|
|
}
|
|
|
|
public ITemplateFactory TemplateFactory { get; }
|
|
}
|