public void DataToControls( List<object> interfaceItem )
{
//--------------------------------------------------------------------------------------------------//
//--- Check to see the type of interface object and assign them to their cooresponding list view ---//
//--------------------------------------------------------------------------------------------------//
foreach (Object obj in interfaceItem)
{
if (obj is PhysicalInterfaceConnectors)
{
var connectorInterface = (PhysicalInterfaceConnectors) obj;
lvConnectors.ConnectorInterface = connectorInterface;
}
else if (obj is PhysicalInterfacePorts)
{
var portInterface = (PhysicalInterfacePorts) obj;
lvPorts.PortInterface = portInterface;
}
}
}