You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using mseedChart.Core;
|
|
|
|
|
using mseedChart.MainModule.ViewModels;
|
|
|
|
|
using mseedChart.MainModule.Views;
|
|
|
|
|
using Prism.Ioc;
|
|
|
|
|
using Prism.Modularity;
|
|
|
|
|
using Prism.Regions;
|
|
|
|
|
|
|
|
|
|
namespace mseedChart.MainModule
|
|
|
|
|
{
|
|
|
|
|
public class MainModule : IModule
|
|
|
|
|
{
|
|
|
|
|
public void OnInitialized(IContainerProvider containerProvider)
|
|
|
|
|
{
|
|
|
|
|
var regionManager = containerProvider.Resolve<IRegionManager>();
|
|
|
|
|
regionManager.RegisterViewWithRegion(RegionNames.ContentRegion, typeof(ChartPlotView));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RegisterTypes(IContainerRegistry containerRegistry)
|
|
|
|
|
{
|
|
|
|
|
containerRegistry.Register<ChartPlotView>();
|
|
|
|
|
containerRegistry.RegisterSingleton<ChartPlotViewModel>();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|