public SelectAccessSeries(string filename) { InitializeComponent(); db = new AccessDB(filename); this.labelFileName.Text = filename; comboBoxTableNames.Items.Clear(); comboBoxTableNames.Items.AddRange(db.TableNames()); comboBoxTableNames.Items.AddRange(db.QueryNames()); if (comboBoxTableNames.Items.Count > 0) { comboBoxTableNames.SelectedIndex = 0; } ReloadDropDowns(); }
public SelectAccessSeries(string filename) { InitializeComponent(); db = new AccessDB(filename); this.labelFileName.Text = filename; comboBoxTableNames.Items.Clear(); comboBoxTableNames.Items.AddRange(db.TableNames()); comboBoxTableNames.Items.AddRange(db.QueryNames()); if (comboBoxTableNames.Items.Count > 0) { comboBoxTableNames.SelectedIndex = 0; } ReloadDropDowns(); }