protected override void btnEdit_Click(object sender, EventArgs e)
{
if (lvList.SelectedItems.Count > 0)
{
var location = (ConnectorLocation) lvList.SelectedItems[0].Tag;
var form = new
ConnectorLocationPinForm(_connectors);
form.ConnectorLocation = location;
if (DialogResult.OK == form.ShowDialog())
{
lvList.SelectedItems[0].Tag = form.ConnectorLocation;
lvList.SelectedItems[0].Text = form.ConnectorLocation.connectorID;
lvList.SelectedItems[0].SubItems[1].Text = form.ConnectorLocation.pinID;
}
}
}