public void Initialize() { _container.RegisterType <IRuntimeDeviceViewModel, RuntimeDeviceViewModel>(); _resourceService.AddResourceAsGlobal("Resources/DevicesResources.xaml", this.GetType().Assembly); //_resourceService.AddResourceAsGlobal("ResourceTemplates/TimeModeDataTemplate.xaml", this.GetType().Assembly); //_resourceService.AddResourceAsGlobal("ResourceTemplates/NoTimeModeDataTemplate.xaml", this.GetType().Assembly); _container.RegisterType <IConfigDeviceViewModelFactory, ConfigDeviceViewModelFactory>(); _container.RegisterType <IConfigDeviceViewModel, ConfigDeviceViewModel>(); _container.RegisterType <IStarterViewModelFactory, StarterViewModelFactory>(); _container.RegisterType <IStarterViewModel, StarterViewModel>(); _container.RegisterType <IDefectStateViewModel, DefectStateViewModel>(); _container.RegisterType <ISchemeModeRuntimeViewModel, SchemeModeRuntimeViewModel>( new ContainerControlledLifetimeManager()); _container.RegisterType <IDeviceCommandStateViewModel, DeviceCommandStateViewModel>(); _container.RegisterType <IDeviceCommandQueueViewModel, DeviceCommandQueueViewModel>(); _container.RegisterType <IDeviceCommandStateViewModelFactory, DeviceCommandStateViewModelFactory>(); _container.RegisterType <IAnalogDataViewModel, AnalogDataViewModel>(); _container.RegisterType <IOutgoingLinesViewModelFactory, OutgoingLinesViewModelFactory>(); _container.RegisterType <ResistorOutgoingLinesViewModel>(); _container.RegisterType <IResistorViewModelFactory, ResistorViewModelFactory>(); _container.RegisterType <IResistorViewModel, ResistorViewModel>(); _container.RegisterType <ICustomItemsViewModelFactory, CustomItemsViewModelFactory>(); _container.RegisterType <ICustomItemsViewModel, CustomItemsViewModel>(); _container.RegisterType <ICascadeViewModel, CascadeViewModel>(); _container.RegisterType <IIndicatorViewModel, IndicatorViewModel>(); _container.RegisterType <ISignalViewModel, SignalViewModel>(); _container.RegisterType <object, LightingSheduleView>(ApplicationGlobalNames.LIGHTING_SHEDULER_VIEW_NAME, new TransientLifetimeManager()); _container.RegisterType <IAnalogMeterViewModelFactory, AnalogMeterViewModelFactory>(); _container.RegisterType <IAnalogMeterViewModel, EnergomeraAnalogMeterViewModel>(DeviceStringKeys .DeviceAnalogMetersTagKeys.ENERGOMERA_METER_TYPE); _container.RegisterType <IAnalogMeterViewModel, MsaAnalogMeterViewModel>(DeviceStringKeys .DeviceAnalogMetersTagKeys.MSA_METER_TYPE); _container.RegisterType <FidersOutgoingLinesViewModel>(); _container.RegisterType <IFiderViewModel, FiderViewModel>(); _container.RegisterType <IQueryIndicatorViewModel, QueryIndicatorViewModel>(); #endregion }
public void Initialize() { _container.RegisterType <ILogicalDeviceViewModelFactory, Picon2LogicalDeviceViewModelFactory>(DEVICE_NAME); _container.RegisterType <object, PICON2ConfigurationModeView>(DEVICE_NAME + ApplicationGlobalNames.CONFIGURATION_VIEW_NAME, new TransientLifetimeManager()); _container.RegisterType <object, Picon2LightingSheduleView>(ApplicationGlobalNames.PICON2LIGHTING_SHEDULER_VIEW_NAME, new TransientLifetimeManager()); _container.RegisterType <ILightingSheduleViewModel, Picon2LightingSheduleViewModel>(ApplicationGlobalNames.PICON2LIGHTING_SHEDULER_VIEWMODEL_NAME); _container.RegisterType <IConfigurationModeViewModel, PICON2ConfigurationModeViewModel>( ApplicationGlobalNames.PICON2_CONFIGURATION_VIEWMODEL_NAME, new TransientLifetimeManager()); _container.RegisterType <IPicon2ModuleInfoViewModel, Picon2ModuleInfoViewModel>(); _container.RegisterType <object, Picon2ModuleInfoView>(ApplicationGlobalNames.PICON2_MODULE_INFO_VIEW_NAME); _resourceService.AddResourceAsGlobal("Resources/Picon2Resources.xaml", this.GetType().Assembly); }