public UpdatePort ( System.Windows.Forms.ListViewItem item ) : void | ||
item | System.Windows.Forms.ListViewItem | |
리턴 | 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;
}