private void removeDrawingToolStripMenuItem_Click(object sender, EventArgs e) { string currDrawing; currDrawing = lvwLogs.SelectedItems[0].SubItems[1].Text; DialogResult retVal = MessageBox.Show("Are you sure that you wish to remove " + currDrawing + " from the list", "Remove drawing", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (retVal == DialogResult.Yes) { int currID = Convert.ToInt32(lvwLogs.SelectedItems[0].Text); CBDrawingLog.Delete(currID); LoadDrawingList(); SetAccessForSecurityLevel(miCurrDept); } }