private void dbListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            tableListBox.Items.Clear();
            var tables = _runner.GetDatabaseTableList(dbListBox.SelectedItem.ToString());

            foreach (var table in tables)
            {
                tableListBox.Items.Add(table.Name);
            }
        }
Exemplo n.º 2
0
        private void SetTableBox()
        {
            tableComboBox.Items.Clear();
            List <Table> tables = _runner.GetDatabaseTableList(dbComboBox.Text).ToList();

            if (tables.Count > 0)
            {
                foreach (var db in tables)
                {
                    tableComboBox.Items.Add(db.Name);
                }
                tableComboBox.SelectedIndex = 0;
            }
        }