for TARGET_J2EE only:
[mono.git] / mcs / class / System / System.ComponentModel / ListChangedEventArgs.cs
old mode 100755 (executable)
new mode 100644 (file)
index 06dfd75..4367bf2
@@ -6,6 +6,27 @@
 // (C) Ximian, Inc.
 //
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System.ComponentModel;
 
 namespace System.ComponentModel {
@@ -15,7 +36,7 @@ namespace System.ComponentModel {
                ListChangedType changedType;
                int oldIndex;
                int newIndex;
-               PropertyDescriptor propDesc;    // What to do with this?
+               PropertyDescriptor propDesc;
        
                public ListChangedEventArgs (ListChangedType listChangedType,
                                             int newIndex)
@@ -30,7 +51,7 @@ namespace System.ComponentModel {
                        this.changedType = listChangedType;
                        this.propDesc = propDesc;
                }
-       
+               
                public ListChangedEventArgs (ListChangedType listChangedType,
                                             int newIndex, int oldIndex)
                {
@@ -38,7 +59,18 @@ namespace System.ComponentModel {
                        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; }
                }
@@ -50,5 +82,11 @@ namespace System.ComponentModel {
                public int NewIndex {
                        get { return newIndex; }
                }
+
+#if NET_2_0
+               public PropertyDescriptor PropertyDescriptor {
+                       get { return propDesc; }
+               }
+#endif         
        }
 }