Пример #1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     DBConnect.sqlcon    = new SqlConnection(DBConnect.connectionstr);
     cbTables.DataSource = DBConnect.ListTables();
 }
Пример #2
0
 private void btnAccess_Click(object sender, EventArgs e)
 {
     dgvData.DataSource = DBConnect.getData("SELECT * FROM " + cbTables.Text);
 }
Пример #3
0
 private void Form2_Load(object sender, EventArgs e)
 {
     cbTables.DataSource = DBConnect.ListTables();
 }