/// <summary> /// Removes the selected items from the blob file. /// </summary> private void RemoveOperation() { int count = 0; try { foreach (ListViewItem item in listView.SelectedItems) { _document.Remove(item.Text); count++; } UpdateBlobUI(); documentStatusLabel.Text = count + " file(s) removed"; } catch (Exception e) { #if DEBUG Trace.WriteLine("Exception thrown when trying RemoveOperation(): " + e, "Error"); #endif MessageBox.Show(this, "Unable to remove files.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }