Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Form1 af = new Form1();
- public Add_Form()
- {
- string connectionString = "data source=localhost; initial catalog = owo; persist security info = True; Integrated Security = SSPI; ";
- string selectedTable = comboBox1.SelectedItem.ToString();
- string sql = $"SELECT * FROM [{selectedTable}] WHERE id < 0";
- InitializeComponent();
- af.RefreshTable();
- }
- private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- string selectedTable = comboBox1.SelectedItem.ToString();
- }
- private void refresh_button_Click(object sender, EventArgs e)
- {
- af.RefreshTable();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement