using Prism.Ioc; using Prism.Modularity; using Prism.Regions; using S7NetModule.Services; using S7NetModule.ViewModels; using S7NetModule.Views; namespace S7NetModule { public class S7NetModuleModule : IModule { public void OnInitialized(IContainerProvider containerProvider) { var regionManager = containerProvider.Resolve(); regionManager.RegisterViewWithRegion("EditRegion", typeof(S7NetView)); regionManager.RegisterViewWithRegion("EditRegion", typeof(S7ReadlView)); regionManager.RegisterViewWithRegion("EditRegion", typeof(S7WriteView)); } public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton(); containerRegistry.RegisterSingleton(); containerRegistry.RegisterSingleton(); containerRegistry.RegisterSingleton(); } } }