public StringProcessor(string UserInput,ref TextBox tb,ref TextBox lb) { this.seperated = UserInput.Split(delimeters); this.tb = tb; this.lb = lb; this.conn = new SQLConn("datasource=localhost;port=3306;username=root;password=1234"); }
private void button1_Click(object sender, EventArgs e) { textBox2.Text = null; textBox3.Text = null; label1.Text = "Voice recognition"; string UserInput = textBox1.Text; if (UserInput.Equals("")) { MessageBox.Show("Please enter some issue"); return; } SQLConn sqc = new SQLConn("datasource=localhost;port=3306;username=root;password=1234"); StringProcessor sp = new StringProcessor(UserInput,ref textBox2,ref textBox3); sp.matchTheCase(); }