public void DeleteItems() { if (TypedList.SelectedObjects.Count == 0) { Utils.ShowError(_managerGui.EmptySelectionError); return; } if (_managerGui.Busy || !_managerGui.ConfirmDeletion()) { return; } foreach (var x in TypedList.SelectedObjects) { try { FileSystem.DeleteFile(x.Path, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin); } catch (FileNotFoundException) { } } RemoveReplays(); }