private void undoCheckOutToolStripMenuItem_Click(object sender, EventArgs e) { EUListItem listItem = (EUListItem)LibraryContentDataGridView.SelectedRows[0].Tag; DialogResult result = MessageBox.Show("Are you sure you would like to undo " + listItem.Title + "?", "", MessageBoxButtons.YesNo); if (result == DialogResult.No) { return; } SharePointManager.UndoCheckOutFile(listItem.SiteSetting, listItem.WebURL, listItem.URL); RefreshViewExt(); }