ATMLCommonLibrary.controls.connector.ConnectorForm.DataToControls C# (CSharp) Method

DataToControls() protected method

protected DataToControls ( ) : void
return void
        protected void DataToControls()
        {
            if (_connector != null)
            {
                String type = extractSexFromConnectorType( _connector.type, cmbTypeSex );
                String matingType = extractSexFromConnectorType( _connector.matingConnectorType, cmbMatingTypeSex );
                if (String.IsNullOrEmpty( matingType ))
                    matingType = type;
                connectorPinList.ConnectorPins = _connector.Pins;
                edtDescription.Value = _connector.Description;
                edtName.Value = _connector.name;
                edtVersion.Value = _connector.version;
                edtConnectorID.Value = _connector.ID;
                edtConnectorPinCount.Value = _connector.Pins == null ? "0" : "" + _connector.Pins.Count;
                cbConnectorType.SelectedIndex = cbConnectorType.FindStringExact( type );
                PromptForNewConnector( type, cbConnectorType, cbConnectorMatingType );
                cbConnectorMatingType.SelectedIndex = cbConnectorMatingType.FindStringExact( matingType );
                PromptForNewConnector( matingType, cbConnectorMatingType, cbConnectorType );
                cbConnectorMatingType.SelectedText = matingType;
                cmbConnectorLocation.SelectedItem = _connector.location;
                identificationControl.Identification = _connector.Identification;
            }
        }