コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmCourseDetail courseDetail = new frmCourseDetail();

            courseDetail.Function = 1;
            courseDetail.ShowDialog();
            if (courseDetail.DialogResult == DialogResult.OK)
            {
                FillGridControl();
            }
        }
コード例 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmCourseDetail courseDetail = new frmCourseDetail();

            courseDetail.Function = 2;
            courseDetail.course   = new CourseDAO().GetByID(int.Parse(txtCourseID.Text));
            courseDetail.ShowDialog();
            if (courseDetail.DialogResult == DialogResult.OK)
            {
                FillGridControl();
            }
        }