Beispiel #1
0
 /// <summary>
 /// Gets or Sets the item at the given index
 /// </summary>
 /// <param name="index">Item index</param>
 public override T this[int index]
 {
     get
     {
         return(base[index]);
     }
     set
     {
         if (base[index] != value)
         {
             T removed = base[index];
             base[index] = value;
             OnItemAfterRemoved.Notify(removed);
             OnItemAfterAdded.Notify(value);
         }
     }
 }
Beispiel #2
0
 protected override void AfterAddItem(T item)
 {
     OnItemAfterAdded.Notify(item);
 }