private void button3_Click(object sender, EventArgs e) { string s = "Data Source=" + textBox1.Text + ";User Id=" + textBox2.Text + ";Password=" + textBox3.Text; dataBaseOption = new DataBaseOption(s); MessageBox.Show(s); }
public Form1() { InitializeComponent(); dataBaseOption = new DataBaseOption(); }