public void DataBind()
        {
            //Set the text of the default database name
            this.lblConfigDb.Text = this.defaultDatabase.DatabaseName;
            toolTip1.SetToolTip(this.lblConfigDb, this.defaultDatabase.DatabaseName);
            if (this.defaultDatabase.IsManuallyEntered)
            {
                this.lblConfigDb.ForeColor = Color.Red;
                toolTip1.SetToolTip(this.lblConfigDb, this.defaultDatabase.DatabaseName + "\r\nWARNING!\r\nThis database was found in the configuration file but NOT in the current Build Manager File.\r\nThis override run setting will be ignored unless fixed.");
            }


            //XCombine the list of databases from the server list with the list of Db's from the configuration
            List <string> configOverrides = null;;

            if (sequence != null)
            {
                configOverrides = sequence.GetOverrideDatabaseNameList();
            }
            DatabaseList lstCombined = new DatabaseList();

            lstCombined.AddManualList(configOverrides);    //adds Db's as "Manually Entered"
            lstCombined.AddRangeUnique(this.databaseList); //adds the range but ensures no duplicates
            lstCombined.Sort(new DatabaseListComparer());

            for (int i = 0; i < lstCombined.Count; i++)
            {
                MultiDbOverrideSequence tmp;
                if (sequence != null)
                {
                    tmp = new MultiDbOverrideSequence(lstCombined[i].DatabaseName,
                                                      sequence.GetSequenceId(this.defaultDatabase.DatabaseName, lstCombined[i].DatabaseName),
                                                      sequence.GetQueryRowData(this.defaultDatabase.DatabaseName, lstCombined[i].DatabaseName), lstCombined[i].IsManuallyEntered);
                }
                else
                {
                    tmp = new MultiDbOverrideSequence(lstCombined[i].DatabaseName, lstCombined[i].IsManuallyEntered);
                }
                this.flowDbContainer.Controls.Add(tmp);
                tmp.ValueChanged        += new EventHandler(tmp_ValueChanged);
                tmp.AutoSequencePattern += new AutoSequencePatternEventHandler(tmp_AutoSequencePattern);
            }
        }
        public void SetData(DatabaseList databaseList, string inputDatabase)
        {
            this.Items.Clear();
            this.databaseList = databaseList;
            databaseList.Sort(new DatabaseListComparer());
            this.inputDatabase = inputDatabase;

            for (int i = 0; i < databaseList.Count; i++)
            {
                if (databaseList[i].IsManuallyEntered)
                {
                    this.Items.Add(databaseList[i].DatabaseName + "*");
                }
                else
                {
                    this.Items.Add(databaseList[i].DatabaseName);
                }

                if (inputDatabase != null && databaseList[i].DatabaseName.ToLower().Trim() == inputDatabase.ToLower().Trim())
                {
                    this.SelectedIndex = i;
                }
            }
        }