private void createCheck_Click(object sender, EventArgs e) { var checkHelper = new CheckData(Nametxt.Text, referenceTable.SelectedItem.ToString(), scriptTb.Text); var sql = tManager.CreateQuery(checkHelper); try { connection.ExecuteCommand(sql, new string[] { }); } catch (SqlException error) { MessageBox.Show(error.Message); return; } MessageBox.Show("Query Executed Correctly!"); }