예제 #1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            if (!radioButton1.Checked && !radioButton2.Checked)
            {
                pictureBox7.Show();
                label10.Show();
                return;
            }
            else
            {
                pictureBox7.Hide();
                label10.Hide();
            }
            sql_apply sa = new sql_apply(CP);

            if (radioButton1.Checked)//同意
            {
                sa.check_agree(applyDemo, teacherDemo);
                MessageBox.Show("通过成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                sa.check_refuse(applyDemo, teacherDemo, richTextBox2.Text);
                MessageBox.Show("拒绝成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            teacher_check tc = new teacher_check(CP, teacherDemo);

            tc.Show();
            this.Close();
        }
예제 #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            teacher_check tc = new teacher_check(CP, teacherDemo);

            tc.Show();
        }