Exemplo n.º 1
0
        public void RemoveItemFromListByValue(DownloadOperationValue value)
        {
            var index = DownloadList.ToList().FindIndex(i => i.Value == value);

            if (index == -1)
            {
                return;
            }
            var item = DownloadList[index].Key;

            item.FinishedTime = DateTime.Now.ToString("h:mm tt");
            DownloadFinishedList.Insert(0, DownloadList[index].Key);
            DownloadList.RemoveAt(index);
        }