private void button1_Click(object sender, EventArgs e) { String hmd_id, hmd_name; hmd_id = comboBox1.SelectedValue.ToString(); hmd_name = comboBox2.SelectedValue.ToString(); chloe_control_all chloe_obj = new chloe_control_all("Data Source=DESKTOP-O4C25KM;Initial Catalog=场馆预约系统;Integrated Security=True"); chloe_obj.inser_hmd(hmd_id, hmd_name); GLY_heimingdan_Load(null, null); }