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