/// <summary> /// This member overrides PropertyBag.OnGetValue. /// </summary> protected override void OnGetValue(PropertySpecEventArgs e) { e.Value = propValues[e.Property.Name]; //gfp 01/18/09 bugfix so DefaultValue property actually gets used if (e.Value == null) { for (int idx = 0; idx < Properties.Count; idx++) { if (e.Property.Name == Properties[idx].Name) { e.Value = Properties[idx].DefaultValue; break; } } } base.OnGetValue(e); }
/// <summary> /// This member overrides PropertyBag.OnSetValue. /// </summary> protected override void OnSetValue(PropertySpecEventArgs e) { propValues[e.Property.Name] = e.Value; base.OnSetValue(e); }