Esempio n. 1
0
 // 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }