private void tsbOk_Click(object sender, EventArgs e) { if (dt.Rows.Count == 0) { DataRow row = dt.Rows.Add("table_credprogr", "table_clients", tbWhereClause.Text); } else { dt.Rows[0]["Clause"] = tbWhereClause.Text; }; TableStruct ts = new TableStruct(); ts.TableName = "where_clauses"; string[] p_keys = { "TableDBName_Left", "TableDBName_Right" }; ts.p_keys = p_keys; string[] columns = { "Clause" }; ts.columns = columns; DBFunctions.WriteToDB(dt, ts); try { DBStructure.UpdateSelectorScript(); } catch (Exception ex) { MessageBox.Show(ex.Message); } Close(); }
public static void UpdateOfferSelector() { DBStructure.UpdateSelectorScript(); }