// Methods public ItemListChangeEventArgs(int index, ICollection <T> removedItems, ICollection <T> addedItems, ItemListChangeAction action) { this.action = ItemListChangeAction.Add; this.index = index; this.removedItems = removedItems; this.addedItems = addedItems; this.action = action; }
public ItemListChangeEventArgs(int index, ICollection <T> removedItems, ICollection <T> addedItems, object owner, ItemListChangeAction action) { this.index = index; this.removedItems = removedItems; this.addedItems = addedItems; this.action = action; this.owner = owner; }
public ItemListChangeEventArgs(int index, T removedActivity, T addedActivity, ItemListChangeAction action) { this.action = ItemListChangeAction.Add; this.index = index; if (removedActivity != null) { this.removedItems = new List <T>(); ((List <T>) this.removedItems).Add(removedActivity); } if (addedActivity != null) { this.addedItems = new List <T>(); ((List <T>) this.addedItems).Add(addedActivity); } this.action = action; }
public ItemListChangeEventArgs(int index, T removedActivity, T addedActivity, object owner, ItemListChangeAction action) { this.index = index; if ((object)removedActivity != null) { this.removedItems = new List <T>(); ((List <T>) this.removedItems).Add(removedActivity); } if ((object)addedActivity != null) { this.addedItems = new List <T>(); ((List <T>) this.addedItems).Add(addedActivity); } this.action = action; this.owner = owner; }