17 using System.ComponentModel;
26 private PropertyDescriptor _subPD;
27 private PropertyDescriptor _parentPD;
36 public override bool IsReadOnly {
get {
return false; } }
37 public override void ResetValue(
object component) { }
38 public override bool CanResetValue(
object component) {
return false; }
39 public override bool ShouldSerializeValue(
object component) {
return true; }
41 public override Type ComponentType
43 get {
return _parentPD.ComponentType; }
46 public override Type PropertyType {
get {
return _subPD.PropertyType; } }
48 public override object GetValue(
object component)
50 return _subPD.GetValue(_parentPD.GetValue(component));
53 public override void SetValue(
object component,
object value)
55 _subPD.SetValue(_parentPD.GetValue(component), value);
56 OnValueChanged(component, EventArgs.Empty);
Support TypeDescriptionProvider attribute on AcUser.