2002-05-01 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System / System.ComponentModel / ListChangedEventArgs.cs
1 //
2 // System.ComponentModel.ListChangedEventArgs.cs
3 //
4 // Author: Duncan Mak (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7 //
8
9 using System.ComponentModel;
10
11 namespace System.ComponentModel {
12         public class ListChangedEventArgs : EventArgs
13         {
14         
15                 ListChangedType changedType;
16                 int oldIndex;
17                 int newIndex;
18         
19                 public ListChangedEventArgs (ListChangedType listChangedType,
20                                              int newIndex)
21                 {
22                         this.changedType = listChangedType;
23                         this.newIndex = newIndex;
24                 }
25         
26                 [MonoTODO]
27                 public ListChangedEventArgs (ListChangedType listChangedType,
28                                              PropertyDescriptor propDesc)
29                 {
30                         this.changedType = listChangedType;
31                 }
32         
33                 public ListChangedEventArgs (ListChangedType listChangedType,
34                                              int newIndex, int oldIndex)
35                 {
36                         this.changedType = listChangedType;
37                         this.newIndex = newIndex;
38                         this.oldIndex = oldIndex;
39                 }
40                  
41                 public ListChangedType ListChangedType {
42                         get { return changedType; }
43                 }
44         
45                 public int OldIndex {
46                         get { return oldIndex; }
47                 }
48         
49                 public int NewIndex {
50                         get { return newIndex; }
51                 }
52         }
53 }