public void Initialize() { this.container.RegisterType <IGoodsReceiveRepository, GoodsReceiveRepository>(); this.container.RegisterType <IGRServices, GRServices>(); this.container.RegisterType <IGRTransactionRepository, GRTransactionRepository>(); this.container.RegisterType <IGRTransactionServices, GRTransactionServices>(); this.container.RegisterType <IEunKGRepository, EunKGRepository>(); this.container.RegisterType <IEunKGServices, EunKGServices>(); this.container.RegisterType <IGRTimerSevices, GRTimerServices>(); this.regionManager.RegisterViewWithRegion(RegionNames.MainNavigationRegion, () => this.container.Resolve <GRNavigationItemView>()); this.container.RegisterTypeForNavigation <GRMainView>(); this.container.RegisterTypeForNavigation <GRDetailsView>(); this.TabRegionController = this.container.Resolve <TabRegionController>(); }
public void Initialize() { this.container.RegisterType <ICompositeCommands, CompositeCommands>(new ContainerControlledLifetimeManager()); this.container.RegisterType <IFCURepository, FCURepository>(); this.container.RegisterType <IFCUServices, FCUServices>(); this.container.RegisterType <IFCUTransactionRepository, FCUTransactionRepository>(); this.container.RegisterType <IFCUTransactionServices, FCUTransactionServices>(); this.container.RegisterType <IAHURepository, AHURepository>(); this.container.RegisterType <IAHUServices, AHUServices>(); this.container.RegisterType <IAHUTransactionRepository, AHUTransactionRepository>(); this.container.RegisterType <IAHUTransactionServices, AHUTransactionServices>(); this.container.RegisterType <IFCUTimerSevices, FCUTimerServices>(); this.container.RegisterType <IAHUTimerSevices, AHUTimerServices>(); this.regionManager.RegisterViewWithRegion(RegionNames.MainNavigationRegion, () => this.container.Resolve <FGNavigationItemView>()); this.container.RegisterTypeForNavigation <FGMainView>(); this.container.RegisterTypeForNavigation <FGfcuDetailsView>(); this.container.RegisterTypeForNavigation <FGahuDetailsView>(); this.TabRegionController = this.container.Resolve <TabRegionController>(); this.FCUTabRegionController = this.container.Resolve <FCUTabRegionController>(); this.AHUTabRegionController = this.container.Resolve <AHUTabRegionController>(); }