private void PlaceablesOnItemPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs) { PlaceableDataObservable placeableChanged = (PlaceableDataObservable)sender; _eventAggregator.GetEvent <PlaceableChangedEvent>().Publish(placeableChanged); RaiseValidityChangedEvent(); }
private void LoadExistingData() { Placeables.Clear(); foreach (var loaded in _moduleDataService.LoadAll <PlaceableData>()) { PlaceableDataObservable placeable = _observableDataFactory.CreateAndMap <PlaceableDataObservable, PlaceableData>(loaded); Placeables.Add(placeable); } }
private void PlaceableDeleted(PlaceableDataObservable data) { _dataEditorDomainService.MarkForDeletion(_objectMapper.Map <PlaceableData>(data)); }
// Placeable Events private void PlaceableCreatedOrChanged(PlaceableDataObservable data) { _dataEditorDomainService.AddOrUpdateDirty(_objectMapper.Map <PlaceableData>(data)); }