Beispiel #1
0
        private void buttonOneAtATime_Click(object sender, EventArgs e)
        {
            _items             = new BatchCollection <int>();
            _items.ItemsAdded += _items_ItemsAdded;

            GenerateItems();
        }
Beispiel #2
0
        private void buttonUpdateBatch_Click(object sender, EventArgs e)
        {
            _items             = new BatchCollection <int>();
            _items.ItemsAdded += _items_ItemsAdded;

            _items.BeginUpdate();
            GenerateItems();
            _items.EndUpdate();
        }