private void biRestoreItem_Click(object sender, EventArgs e) { foreach (OLVListItem item in recycleBinList.SelectedItems) { RecycleBinEntry entry = (RecycleBinEntry)item.RowObject; bool restored = false; if (entry.EntryType == RecycleBinEntryType.File) { restored = recycleBin.RestoreFile(entry); } else { restored = recycleBin.RestoreFolder(entry); } //if (restored) // recycleBinList.Items.Remove(item); } }