Exemple #1
0
        private void 清除队列ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <ListViewItem> deleteLviList = new List <ListViewItem>();

            foreach (ListViewItem lvi in lvQueue.Items)
            {
                deleteLviList.Add(lvi);
            }
            foreach (ListViewItem lvi in deleteLviList)
            {
                RemoveListViewItem(lvi);
            }
            CurrentTransferQueue.ClearQueue();
        }