private void DataModel_DataChanged(object sender, PropertyChangedEventArgs e) { if (!ModifiedProperties.Contains(e.PropertyName)) { ModifiedProperties.Add(e.PropertyName); } }
internal void OnPropertyChanged(string propertyName) { #if SILVERLIGHT if (IsChangeTrackingEnabled && _objectState != ObjectState.Added) #else if (IsChangeTrackingEnabled) #endif { if (!ModifiedProperties.Contains(propertyName)) { ModifiedProperties.Add(propertyName); } } }