Rev. | d06e188dbdd0a33713a88f5019b04101919345f2 |
---|---|
Tamaño | 2,334 octetos |
Tiempo | 2023-09-30 20:42:15 |
Autor | yoshy |
Log Message | [MOD] パッケージ名を CleanAuLait.Prism.WPF に変更
|
using CleanAuLait.Adaptor.Boundary.Gateway.UI;
using CleanAuLait.Adaptor.Boundary.Gateway.UI.Dialog;
using CleanAuLait.Adaptor.Boundary.Gateway.UI.Dialog.Shell;
using CleanAuLait.Adaptor.Boundary.Gateway.ViewModel.Dialog;
using CleanAuLait.Adaptor.Gateway.UI;
using CleanAuLait.Adaptor.Gateway.UI.Dialog;
using CleanAuLait.Adaptor.Gateway.UI.Dialog.Service;
using CleanAuLait.Adaptor.Gateway.UI.Dialog.Shell;
using CleanAuLait.Adaptor.Gateway.ViewModel;
using CleanAuLait.OuterEdge.UI.Dialog;
using NLog;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Mvvm;
using Prism.Services.Dialogs;
namespace CleanAuLait
{
public class CleanAuLaitPrismWPFModule: IModule
{
private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
public void RegisterTypes(IContainerRegistry containerRegistry)
{
//
// Dialog Service
//
containerRegistry.RegisterSingleton<IDialogService, UniversalDialogService>();
//
// Dialog Proxy
//
containerRegistry.RegisterSingleton<IUserDialogProxy, UserDialogProxy>();
containerRegistry.RegisterSingleton<IUniversalDialogProxy, UniversalDialogProxy>();
//
// Dialog View Model
//
containerRegistry.RegisterSingleton<IUniversalDialogViewModel, UniversalDialogViewModel>();
containerRegistry.RegisterDialog<UniversalDialog, IUniversalDialogViewModel>();
//
// UI Proxy
//
containerRegistry.RegisterSingleton<IStatusBarProxy, StatusBarProxy>();
//
// Shell Common Dialog Proxy
//
containerRegistry.RegisterSingleton<ICommonFolderDialogProxy, CommonFolderDialogProxy>();
containerRegistry.RegisterSingleton<ICommonOpenLoadFileDialogProxy, CommonOpenLoadFileDialogProxy>();
logger.Trace("RegisterTypes end");
}
public void OnInitialized(IContainerProvider containerProvider)
{
//
// Views and ViewModels
//
ViewModelLocationProvider.Register<UniversalDialog>(() => containerProvider.Resolve<IUniversalDialogViewModel>());
logger.Trace("OnInitialized end");
}
}
}