Example #1
0
        protected virtual void OnItemRemoved(object sender, ItemRemovedEventArgs e)
        {
            var handler = ItemRemoved;  // Avoid race condition

            handler?.Invoke(sender, e); // Invoke handler
        }
Example #2
0
 // Event: rows have been removed, update counter in header accordingly
 private void _itemList_ItemRemoved(object sender, ItemRemovedEventArgs e)
 {
     _pieceCount -= e.OldItem.MinQty;
     UpdateTitle();
 }