private void button1_Click(object sender, EventArgs e) { //hostname = textBox_hostname.Text; try { setHostname(textBox_hostname.Text); uid = textBox_uid.Text; password = textBox_password.Text; configedit cfg = new configedit(); cfg.AddUpdateAppSettings("aledashopadmin", "Server=" + getHostname() + ";User Id=" + uid + ";Password="******";"); MessageBox.Show("Nustatymų failas sukurtas."); } catch (Exception ex) { MessageBox.Show(ex.Message); } MysqlCommands cmd = new MysqlCommands(); //cmd.createDB(); }
private void button1_Click(object sender, EventArgs e) { MysqlCommands cmd = new MysqlCommands(); cmd.Insert(); }