private void btnDeleteConnector_Click(object sender, EventArgs e)
{
if (lvConnectors.SelectedItems.Count > 0)
{
var connector = (Connector)lvConnectors.SelectedItems[0].Tag;
if( DialogResult.Yes == MessageBox.Show( string.Format("Delete connector \"{0}\"?", connector.ID ),
Resources.V_E_R_I_F_Y,
MessageBoxButtons.YesNo,
MessageBoxIcon.Question ))
{
ListViewItem item = lvConnectors.SelectedItems[0];
item.Remove();
};
}
}