private void Button3_Click(object sender, EventArgs e) { try { foreach (ListViewItem n in lvSnapshots.SelectedItems) { var x = (ItemHistorySnapshot)n.Tag; _rs.DeleteItemHistorySnapshot(Item.Path, x.HistoryID); } FillSnapshots(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void DeleteItemHistorySnapshot(string ItemPath, string HistoryID) { rs.DeleteItemHistorySnapshot(ItemPath, HistoryID); }