예제 #1
0
        private void RemoveSelectedItems()
        {
            List <ObjectListViewItem> selectedItems = new List <ObjectListViewItem>();

            foreach (var item in BalancesListView.SelectedItems)
            {
                selectedItems.Add(item as ObjectListViewItem);
            }

            foreach (ObjectListViewItem item in selectedItems)
            {
                BalancesListView.Items.Remove(item);
                Balances.Remove(item.UnderlyingObject as BalanceInformation);
            }
        }