ListChangedType changedType;
int oldIndex;
int newIndex;
- //PropertyDescriptor propDesc; // What to do with this?
+ PropertyDescriptor propDesc;
public ListChangedEventArgs (ListChangedType listChangedType,
int newIndex)
PropertyDescriptor propDesc)
{
this.changedType = listChangedType;
- //this.propDesc = propDesc;
+ this.propDesc = propDesc;
}
-
+
public ListChangedEventArgs (ListChangedType listChangedType,
int newIndex, int oldIndex)
{
this.newIndex = newIndex;
this.oldIndex = oldIndex;
}
-
+
+#if NET_2_0
+ public ListChangedEventArgs (ListChangedType listChangedType,
+ int newIndex,
+ PropertyDescriptor propDesc)
+ {
+ this.changedType = listChangedType;
+ this.newIndex = newIndex;
+ this.propDesc = propDesc;
+ }
+#endif
+
public ListChangedType ListChangedType {
get { return changedType; }
}
public int NewIndex {
get { return newIndex; }
}
+
+#if NET_2_0
+ public PropertyDescriptor PropertyDescriptor {
+ get { return propDesc; }
+ }
+#endif
}
}