Esempio n. 1
0
        private void dataGridViewResult_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Course course = new Course();

            course.courId   = this.dataSet.Tables[0].Rows[e.RowIndex][0].ToString();
            course.courName = this.dataSet.Tables[0].Rows[e.RowIndex][1].ToString();
            course.credit   = Convert.ToSingle(this.dataSet.Tables[0].Rows[e.RowIndex][2]);
            course.remark   = this.dataSet.Tables[0].Rows[e.RowIndex][3].ToString();

            UpdateCourseForm updateCourseForm = new UpdateCourseForm(this.dataSet, course);

            updateCourseForm.ShowDialog();
        }
Esempio n. 2
0
        private void 修改ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            UpdateCourseForm updateCourseForm = new UpdateCourseForm();

            updateCourseForm.ShowDialog();
        }