private void lvInterface_OnAdd()
{
//------------------------------------------------------------------------------------------------------------------//
//--- We need to be able to select a port from either the resource interface list or the hardware interface list ---//
//------------------------------------------------------------------------------------------------------------------//
var form = new PortSelectionForm(instrument);
if (DialogResult.OK == form.ShowDialog())
{
foreach (Port port in form.SelectedPorts)
{
if (!HasPort(port))
{
AddInterfacePort(port);
}
}
}
}