ATMLCommonLibrary.controls.lists.PortListView.UpdatePort C# (CSharp) Method

UpdatePort() public method

public UpdatePort ( System.Windows.Forms.ListViewItem item ) : void
item System.Windows.Forms.ListViewItem
return void
        public void UpdatePort(ListViewItem item)
        {
            var port = (PhysicalInterfacePortsPort) item.Tag;
            item.SubItems[0].Text = port.name;
            item.SubItems[1].Text = port.directionSpecified ? Enum.GetName(typeof (PortDirection), port.direction) : "";
            item.SubItems[2].Text = port.typeSpecified ? Enum.GetName(typeof (PortType), port.type) : "";
            item.SubItems[3].Text = port.ConnectorPins == null ? "" : "" + port.ConnectorPins.Count;
        }