Ejemplo n.º 1
0
        private void Course_Savebutton1_Click(object sender, EventArgs e)
        {
            Course aCourse = new Course();

            aCourse.CourseID     = COURSE_CourseIDtextBox1.Text;
            aCourse.CourseTitles = COURSE_CourseTitletextBox2.Text;
            aCourse.Section      = COURSE_SectiontextBox3.Text;
            aCourse.Semister     = COURSE_SemistercomboBox1.Text;

            CourseBLL aCourseBLL = new CourseBLL();
            bool      res        = aCourseBLL.SAVECourseBLL(aCourse);

            if (res)
            {
                MessageBox.Show("Course Save Successfully!!!");
                clearCourseTextBoxes();
                LoadCoursesDataGridView();
            }
            else
            {
                MessageBox.Show("Error!");
            }
        }