private void btnGetCollection_Click(object sender, EventArgs e) { try { SAPINTDB.DbUtil dbUtil = new SAPINTDB.DbUtil(cbxDbConnection.Text); this.dataGridView2.DataSource = dbUtil.getCollection(txtCollectionName.Text); } catch (Exception exception) { MessageBox.Show(exception.Message); } }
private void button1_Click(object sender, EventArgs e) { try { SAPINTDB.DbUtil dbUtil = new SAPINTDB.DbUtil(cbxDbConnection.Text); this.dataGridView1.DataSource = dbUtil.getDbObjectList(); } catch (Exception exception) { MessageBox.Show(exception.Message); } }