public void RemoveCommand() { foreach (var file in SelectedList) { _cloudFileService.DeleteFile(file); FilesList.Remove(file); } }
private void RemoveButton_Click(object sender, RoutedEventArgs e) { var file = (string)(FileBox.SelectedItem); if (file == null) { return; } FilesList.Remove(file); }
private void OnRemoveSelectedItems(IList selectedItems) { IEnumerable <string> collection = selectedItems.Cast <string>(); var copy = new List <string>(collection); foreach (string s in copy) { FilesList.Remove(s); } }