ATMLCommonLibrary.controls.lists.PhysicalInterfaceListControl.DataToControls C# (CSharp) Method

DataToControls() public method

public DataToControls ( List interfaceItem ) : void
interfaceItem List
return void
        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;
                }
            }
        }

Same methods

PhysicalInterfaceListControl::DataToControls ( ) : void