private void 已预约ToolStripMenuItem_Click(object sender, EventArgs e) { int bookcheck_result; chloe_control_all chloe_obj = new chloe_control_all("Data Source=DESKTOP-O4C25KM;Initial Catalog=场馆预约系统;Integrated Security=True"); bookcheck_result = chloe_obj.gly_book_find(); if (bookcheck_result == 0) { MessageBox.Show("暂无用户预约场地,请过几分钟再来!"); } else { GLY_yiyuyue YYY = new GLY_yiyuyue(); this.Hide(); YYY.Show(); } }