private void InitDataFormData(object sender, EventArgs e)
 {
     mysql_serversAdapter = new firedumpdbDataSetTableAdapters.sql_serversTableAdapter();
     serverData           = new firedumpdbDataSet.sql_serversDataTable();
     mysql_serversAdapter.Fill(serverData);
     comboBox1.DataSource    = serverData;
     comboBox1.DisplayMember = "name";
     comboBox1.ValueMember   = "id";
 }
Exemple #2
0
 private void loadComboBoxServers()
 {
     serverData           = new firedumpdbDataSet.sql_serversDataTable();
     mysql_serversAdapter = new firedumpdbDataSetTableAdapters.sql_serversTableAdapter();
     mysql_serversAdapter.Fill(serverData);
     cmbServers.DataSource    = serverData;
     cmbServers.DisplayMember = "name";
     cmbServers.ValueMember   = "id";
     if (cmbServers.Items.Count > 0)
     {
         cmbServers.SelectedIndex = 0;
         //backgroundWorker1.RunWorkerAsync();
         fillDatabaseCmb(null, null);
     }
 }