示例#1
0
        private void PlaceablesOnItemPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
        {
            PlaceableDataObservable placeableChanged = (PlaceableDataObservable)sender;

            _eventAggregator.GetEvent <PlaceableChangedEvent>().Publish(placeableChanged);
            RaiseValidityChangedEvent();
        }
示例#2
0
        private void LoadExistingData()
        {
            Placeables.Clear();

            foreach (var loaded in _moduleDataService.LoadAll <PlaceableData>())
            {
                PlaceableDataObservable placeable = _observableDataFactory.CreateAndMap <PlaceableDataObservable, PlaceableData>(loaded);
                Placeables.Add(placeable);
            }
        }
示例#3
0
 private void PlaceableDeleted(PlaceableDataObservable data)
 {
     _dataEditorDomainService.MarkForDeletion(_objectMapper.Map <PlaceableData>(data));
 }
示例#4
0
 // Placeable Events
 private void PlaceableCreatedOrChanged(PlaceableDataObservable data)
 {
     _dataEditorDomainService.AddOrUpdateDirty(_objectMapper.Map <PlaceableData>(data));
 }