private void btnUpdateTemplate_Click(object sender, EventArgs e) { String dbName = ConfigFileTool.SAPGlobalSettings.GetTemplateDb(); SAPINTDB.netlib7 dbhelper = new SAPINTDB.netlib7(dbName); dbhelper.LogEvents = true; dbhelper.DataTableUpdate(dt, "Select * from codeTemplate"); dt.AcceptChanges(); this.userDataGridView.DataSource = dt; }
private void btnUpdateDb_Click(object sender, EventArgs e) { try { String dbName = ConfigFileTool.SAPGlobalSettings.GetDefaultDbConnection(); SAPINTDB.netlib7 dbhelper = new SAPINTDB.netlib7(dbName); dbhelper.DataTableUpdate(dt, this.syntaxBoxControl1.Document.Text); dt.AcceptChanges(); this.dataGridView1.DataSource = dt; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnUpdateDb_Click(object sender, EventArgs e) { try { String dbName = ConfigFileTool.SAPGlobalSettings.GetDefaultDbConnection(); SAPINTDB.netlib7 dbhelper = new SAPINTDB.netlib7(dbName); dbhelper.DataTableUpdate(dt, this.syntaxBoxControl1.Document.Text); dt.AcceptChanges(); this.dataGridView1.DataSource = dt; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnUpdateTemplate_Click(object sender, EventArgs e) { String dbName = ConfigFileTool.SAPGlobalSettings.GetTemplateDb(); SAPINTDB.netlib7 dbhelper = new SAPINTDB.netlib7(dbName); dbhelper.LogEvents = true; dbhelper.DataTableUpdate(dt, "Select * from codeTemplate"); dt.AcceptChanges(); this.userDataGridView.DataSource = dt; }