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();
 }
Exemplo n.º 4
0
			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));
			}
			public SuppressNotificationsScope(DictionaryAdapterBase adapter)
			{
				this.adapter = adapter;
				this.adapter.SuppressNotifications();
			}
Exemplo n.º 8
0
 public SuppressEditingScope(DictionaryAdapterBase adapter)
 {
     this.adapter = adapter;
     this.adapter.SuppressEditing();
 }