public TrackPropertyChangeScope(DictionaryAdapterBase adapter) { this.adapter = adapter; readonlyProperties = adapter.This.Properties.Values.Where( pd => !pd.Property.CanWrite || pd.IsDynamicProperty) .ToDictionary(pd => pd, pd => GetEffectivePropertyValue(pd)); }
public TrackPropertyChangeScope(DictionaryAdapterBase adapter, PropertyDescriptor property, object existingValue) : this(adapter) { this.property = property; this.existingValue = existingValue; existingValue = adapter.GetProperty(property.PropertyName, true); // TODO: This looks unnecessary }
public SuppressNotificationsScope(DictionaryAdapterBase adapter) { this.adapter = adapter; this.adapter.SuppressNotifications(); }
public SuppressEditingScope(DictionaryAdapterBase adapter) { this.adapter = adapter; this.adapter.SuppressEditing(); }
public TrackPropertyChangeScope(DictionaryAdapterBase adapter, PropertyDescriptor property, object existingValue) : this(adapter) { this.property = property; this.existingValue = existingValue; existingValue = adapter.GetProperty(property.PropertyName); }
public TrackPropertyChangeScope(DictionaryAdapterBase adapter) { this.adapter = adapter; readonlyProperties = adapter.Meta.Properties.Values.Where( pd => !pd.Property.CanWrite || pd.IsDynamicProperty) .ToDictionary(pd => pd, pd => GetEffectivePropertyValue(pd)); }