private void 返回ToolStripMenuItem_Click(object sender, EventArgs e) { StuDenglu1 studenglu = new StuDenglu1(); studenglu.Show(); this.Hide(); }
private void timer1_Tick(object sender, EventArgs e) { if (comboBox1.Text == "学生") { StuDenglu1 studenglu = new StuDenglu1(); studenglu.Show(); this.Hide(); } if (comboBox1.Text == "老师") { TeaDenglu1 teadenglu = new TeaDenglu1(); teadenglu.Show(); this.Hide(); } if (comboBox1.Text == "管理员") { AdminDenglu1 admindenglu = new AdminDenglu1(); admindenglu.Show(); this.Hide(); } timer1.Stop(); }
private void button2_Click(object sender, EventArgs e) { textBox1.Text = null; textBox2.Text = null; textBox3.Text = null; comboBox1.Text = null; comboBox2.Text = null; StuDenglu1 studenglu = new StuDenglu1(); studenglu.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == null || textBox2.Text == null || textBox3.Text == null || textBox3.Text == null || comboBox1.Text == null) { MessageBox.Show("输入不完整,请重新输入", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } string sql = "insert into Yy values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + comboBox1.Text + "','" + comboBox2.Text + "','')"; Dao1 dao = new Dao1(); int i = dao.Execute(sql); if (i > 0) { MessageBox.Show("预约成功!"); StuDenglu1 studenglu = new StuDenglu1(); studenglu.Show(); this.Hide(); } }