Inheritance: ATMLDataAccessLibrary.db.beans.LuConnectorBean
 public ConnectorConfigurationForm( dbConnector connector, List<ConnectorPin> pins )
 {
     InitializeComponent();
     _connector = connector;
     _pins = pins;
     Load += ConnectorConfigurationForm_Load;
     Saved += ConnectorConfigurationForm_Saved;
 }
 private dbConnector PromptForNewConnector( String type, ComboBox cbPrimary, ComboBox cbSecondary )
 {
     dbConnector conn = null;
     if (type != null && cbPrimary.SelectedIndex == -1)
     {
         var dao = new EquipmentDAO();
         conn = dao.getConnector( type );
         if (conn == null)
         {
             if (DialogResult.Yes ==
                 MessageBox.Show(
                     string.Format(
                         "Connector type \"{0}\" does not exist in the Connector Database, would you like to add it?",
                         type ),
                     @"Add Connector",
                     MessageBoxButtons.YesNo,
                     MessageBoxIcon.Question ))
             {
                 conn = new dbConnector();
                 conn.DataState = BASEBean.eDataState.DS_ADD;
                 conn.connectorType = type;
                 conn.ID = Guid.NewGuid();
                 conn.IncludeKeyOnInsert = true;
                 conn.pinCount = string.IsNullOrWhiteSpace( edtConnectorPinCount.Text )
                                     ? 0
                                     : int.Parse( edtConnectorPinCount.Text );
                 conn.save();
             }
         }
         if (conn != null)
         {
             cbPrimary.SelectedIndex = cbPrimary.Items.Add( conn );
             cbSecondary.Items.Add( conn );
         }
     }
     else
     {
         conn = cbPrimary.SelectedItem as dbConnector;
     }
     return conn;
 }