private void button1_Click(object sender, EventArgs e) { db.insert_account(textBox1.Text.ToString()); int acc_id = int.Parse(db.select_accountid()); db.insert_maintains(acc_id, user_id1); this.Close(); }