public ViewModel(IUnityContainer container, IEventAggregator eventAggregator) { _container = container; SelectionChanged = new DelegateCommand(OnSelectionChanged); _service = _container.Resolve<IXMLService>("AlarmsXMLService"); _service.DataTags.CollectionChanged+=alarmDataTags_CollectionChanged; _service.reloadTags(); EnumerationValues = new ObservableCollection<EnumerationContainer>(); }
void initProperties(IUnityContainer container, IEventAggregator eventAggregator) { _eventAggregator = eventAggregator; _container = container; _service = _container.Resolve<IXMLService>("AlarmsXMLService"); EnumerationValues = new ObservableCollection<EnumerationContainer>(); enumNames = new ObservableCollection<string>(); enumNames.Add("New Item..."); _service.VirtualTags.CollectionChanged += alarmVirtualTags_CollectionChanged; _service.reloadTags(); }