Exemplo n.º 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            Form24 form = new Form24();

            this.Hide();
            form.Show();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(ConnectionString);

            con.Open();

            SqlCommand cmd = new SqlCommand("insert into StudentResult(StudentId,AssessmentComponentId,RubricMeasurementId,EvaluationDate) values('" + comboBox1.Text.ToString() + "','" + comboBox2.Text.ToString() + "','" + comboBox3.Text.ToString() + "','" + Convert.ToDateTime(dateTimePicker1.Text) + "')", con);

            cmd.ExecuteNonQuery();
            MessageBox.Show("Added!");

            Form24 frm5 = new Form24();

            this.Hide();
            frm5.Show();
        }