Advertisement
AIwinter

dfsaasf

May 4th, 2023
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Form1 af = new Form1();
  2.  
  3. public Add_Form()
  4. {
  5. string connectionString = "data source=localhost; initial catalog = owo; persist security info = True; Integrated Security = SSPI; ";
  6. string selectedTable = comboBox1.SelectedItem.ToString();
  7. string sql = $"SELECT * FROM [{selectedTable}] WHERE id < 0";
  8. InitializeComponent();
  9. af.RefreshTable();
  10. }
  11.  
  12. private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  13. {
  14. string selectedTable = comboBox1.SelectedItem.ToString();
  15. }
  16.  
  17. private void refresh_button_Click(object sender, EventArgs e)
  18. {
  19.  
  20. af.RefreshTable();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement