Exemple #1
0
 private void loadServerData()
 {
     serverData           = new firedumpdbDataSet.mysql_serversDataTable();
     mysql_serversAdapter = new firedumpdbDataSetTableAdapters.mysql_serversTableAdapter();
     mysql_serversAdapter.Fill(serverData);
     cmbServers.DataSource    = serverData;
     cmbServers.DisplayMember = "name";
     cmbServers.ValueMember   = "id";
     if (cmbServers.Items.Count > 0)
     {
         cmbServers.SelectedIndex = 0;
     }
 }
Exemple #2
0
 private void loadComboBoxServers()
 {
     serverData           = new firedumpdbDataSet.mysql_serversDataTable();
     mysql_serversAdapter = new firedumpdbDataSetTableAdapters.mysql_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);
     }
 }
Exemple #3
0
        private void reloadserverData(int id)
        {
            mysql_serversAdapter.Fill(serverData);
            int i = 0;

            foreach (firedumpdbDataSet.mysql_serversRow row in serverData)
            {
                if (row.id == id)
                {
                    cmbServers.SelectedIndex = i;
                    cmbServers_SelectionChangeCommitted(null, null);
                    break;
                }
                i++;
            }
        }