using System;
namespace System.ComponentModel
{
/// Provides data for the event.
// Token: 0x020000A5 RID: 165
public class ListChangedEventArgs : EventArgs
{
/// Initializes a new instance of the class given the type of change and the index of the affected item.
/// A value indicating the type of change.
/// The index of the item that was added, changed, or removed.
// Token: 0x06000558 RID: 1368 RVA: 0x0000E294 File Offset: 0x0000C494
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex)
: this(listChangedType, newIndex, -1)
{
}
/// Initializes a new instance of the class given the type of change and the affected.
/// A value indicating the type of change.
/// The that was added, removed, or changed.
// Token: 0x06000559 RID: 1369 RVA: 0x0000E2A0 File Offset: 0x0000C4A0
public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor propDesc)
{
this.changedType = listChangedType;
this.propDesc = propDesc;
}
/// Initializes a new instance of the class given the type of change and the old and new index of the item that was moved.
/// A value indicating the type of change.
/// The new index of the item that was moved.
/// The old index of the item that was moved.
// Token: 0x0600055A RID: 1370 RVA: 0x0000E2B8 File Offset: 0x0000C4B8
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, int oldIndex)
{
this.changedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = oldIndex;
}
/// Initializes a new instance of the class given the type of change, the index of the affected item, and a describing the affected item.
/// A value indicating the type of change.
/// The index of the item that was added or changed.
/// The describing the item.
// Token: 0x0600055B RID: 1371 RVA: 0x0000E2D8 File Offset: 0x0000C4D8
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor propDesc)
{
this.changedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = newIndex;
this.propDesc = propDesc;
}
/// Gets the type of change.
/// A value indicating the type of change.
// Token: 0x17000161 RID: 353
// (get) Token: 0x0600055C RID: 1372 RVA: 0x0000E308 File Offset: 0x0000C508
public ListChangedType ListChangedType
{
get
{
return this.changedType;
}
}
/// Gets the old index of an item that has been moved.
/// The old index of the moved item.
// Token: 0x17000162 RID: 354
// (get) Token: 0x0600055D RID: 1373 RVA: 0x0000E310 File Offset: 0x0000C510
public int OldIndex
{
get
{
return this.oldIndex;
}
}
/// Gets the index of the item affected by the change.
/// The index of the affected by the change.
// Token: 0x17000163 RID: 355
// (get) Token: 0x0600055E RID: 1374 RVA: 0x0000E318 File Offset: 0x0000C518
public int NewIndex
{
get
{
return this.newIndex;
}
}
/// Gets the that was added, changed, or deleted.
/// The affected by the change.
// Token: 0x17000164 RID: 356
// (get) Token: 0x0600055F RID: 1375 RVA: 0x0000E320 File Offset: 0x0000C520
public PropertyDescriptor PropertyDescriptor
{
get
{
return this.propDesc;
}
}
// Token: 0x0400018E RID: 398
private ListChangedType changedType;
// Token: 0x0400018F RID: 399
private int oldIndex;
// Token: 0x04000190 RID: 400
private int newIndex;
// Token: 0x04000191 RID: 401
private PropertyDescriptor propDesc;
}
}