예제 #1
0
        private void item_Click(object sender, EventArgs e)
        {
            ThumbnailItem item = sender as ThumbnailItem;

            item.IsSelected = !item.IsSelected;

            if (item.IsSelected)
            {
                _selectedItems.Add(item);
            }
            else
            {
                _selectedItems.Remove(item);
            }
        }