private void RemoveCompleted() { foreach (UploadParam info in DataSetInfos.Where(i => i.State == UploaderState.Complete)) { DataSetInfos.Remove(info); } }
private void DeleteProcess() { //foreach (object item in new ArrayList(DataSetListView.SelectedItems)) // DataSetInfos.Remove((UploadParam)item); DataSetInfos.Remove(SelectedItem); }
public void AddFiles(IEnumerable <string> files) { foreach (var fileName in files) { var file = new FileInfo(fileName); var name = Path.GetFileNameWithoutExtension(file.Name); // Remove duplicates. foreach (var item in DataSetInfos.Where(x => x.Name == name).ToArray()) { DataSetInfos.Remove(item); } var uploadParam = new UploadParam(fileName); uploadParam.VerifyConfiguration(); DataSetInfos.Add(uploadParam); } DataSetInfos.OrderBy(x => x.Name); }
private void DeleteProcess() { DataSetInfos.Remove(SelectedItem); }