23 lines
679 B
C#
23 lines
679 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Pf2eDataScrapper.WPF.EntityViewer.Stores;
|
|
using Pf2eDataScrapper.WPF.EntityViewer.ViewModel;
|
|
|
|
namespace Pf2eDataScrapper.WPF;
|
|
|
|
public static class WpfServiceProviderExtension
|
|
{
|
|
public static IServiceCollection RegisterWpfServices(this IServiceCollection collection)
|
|
{
|
|
return collection
|
|
// ViewModels
|
|
.AddTransient<EntityFormViewModel>()
|
|
.AddTransient<EntityListViewModel>()
|
|
.AddTransient<ViewViewModel>()
|
|
// Stores
|
|
.AddSingleton<SelectedEntityTypeStore>()
|
|
.AddSingleton<SelectedEntityStore>()
|
|
//
|
|
;
|
|
}
|
|
}
|