예제 #1
0
        private void bindingSource_Oyuncular_ListChanged(object sender, ListChangedEventArgs e)
        {
            switch (e.ListChangedType)
            {
            case ListChangedType.ItemAdded:
                Console.WriteLine("ItemAdded");
                break;

            case ListChangedType.ItemChanged:
                Console.WriteLine("ItemChanged");
                break;

            case ListChangedType.ItemDeleted:
                Console.WriteLine("ItemDeleted");
                Oyuncu.OyuncuSil(e.NewIndex);
                break;
            }
        }