示例#1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            HandleItems h = new HandleItems(checkedListBox1);

            foreach (var item in checkedListBox1.CheckedItems.OfType <Item1>().ToList())
            {
                h.RemoveItem(item, list1);
                System.IO.File.Delete(folder_path + @"\" + item.Name_ + file_extention);
            }
        }
示例#2
0
        public async Task RemoveItem(int id)
        {
            HandleItems items = new HandleItems();

            items.RemoveItem(id);
        }