Exemplo n.º 1
0
 /// <summary>
 /// Raises before an Item is removed from the list.
 /// </summary>
 /// <param name="sender">object</param>
 /// <param name="e">GenericItemEventArgs</param>
 protected virtual void OnBeforeItemRemoved(object sender, GenericItemEventArgs <T> e)
 {
     if (BeforeItemRemoved != null)
     {
         BeforeItemRemoved(sender, e);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises when an Item is added to the list.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">GenericItemEventArgs</param>
 protected virtual void OnItemAdded(object sender, GenericItemEventArgs <T> e)
 {
     if (ItemAdded != null)
     {
         ItemAdded(sender, e);
     }
 }