Ejemplo n.º 1
0
 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
 }
Ejemplo n.º 2
0
 public TrackPropertyChangeScope(DictionaryAdapterBase adapter)
 {
     this.adapter            = adapter;
     this.readOnlyProperties = adapter.This.Properties.Values
                               .Where(
         pd => !pd.Property.CanWrite || pd.IsDynamicProperty
         )
                               .ToDictionary(
         pd => pd,
         pd => GetEffectivePropertyValue(pd)
         );
 }
Ejemplo n.º 3
0
 public NotificationSuppressionScope(DictionaryAdapterBase adapter)
 {
     this.adapter = adapter;
     this.adapter.SuppressNotifications();
 }
 public SuppressEditingScope(DictionaryAdapterBase adapter)
 {
     this.adapter = adapter;
     this.adapter.SuppressEditing();
 }