Пример #1
0
 private void ItemOnItemPositionChanged(object sender, SummaryItemEventArgs e)
 {
     SummaryContent.ReorderItems();
     UpdateNumbers();
     UpdatePositionButtons();
     UpdateControlsInList((Control)e.SummaryItem);
     RaiseDataChanged();
 }
Пример #2
0
 private void ItemOnItemDeleted(object sender, SummaryItemEventArgs e)
 {
     SummaryContent.DeleteItem(e.SummaryItem.Data);
     _inputControls.Remove(e.SummaryItem);
     SummaryContent.ReorderItems();
     UpdateControlsInList(OrderedItems.OfType <Control>().FirstOrDefault());
     UpdateNumbers();
     UpdatePositionButtons();
     UpdateTotals();
     RaiseDataChanged();
 }