/**
         *
         * This function is used to initialise this component
         *
         * @param coursesForm: is the course form that is being passed in so that it can be manipulated
         *
         **/
        public frmAddCourse(frmCourses coursesForm)
        {
            // Initialize component
            InitializeComponent();

            // Set the form variable
            this.coursesForm = coursesForm;
        }
Beispiel #2
0
        /**
         *
         * This meethod is used to initialize the component and set the class variables
         *
         * @param course: is the course to be removed
         * @param frmCourse: is the courses form that is passed in so that modifications can be made to it
         *
         **/
        public frmRemoveCoruse(Course course, frmCourses frmCourse)
        {
            // Initialize the component
            InitializeComponent();

            // Set the class variables
            this.course      = course;
            this.coursesForm = frmCourse;
        }
        /**
         *
         * This function is used to initialize this form
         *
         * @param course: is the course to edit
         * @param coursesForm: is the course for that is passed so that modifications can be made to it
         *
         **/
        public frmEditCourse(Course course, frmCourses coursesForm)
        {
            // Initialize the component
            InitializeComponent();

            // Set the class variables
            this.course      = course;
            this.coursesForm = coursesForm;
        }
        /**
         *
         * This function is used to initialize the form
         *
         * @param linkSection: is the section to link a course to
         * @param courseForm: is the form that is used to manipulate
         *
         **/
        public frmLinkCourse(string linkSection, frmCourses coursesForm)
        {
            // Initialize component
            InitializeComponent();

            // Set Class variables
            this.linkSection = linkSection;
            this.coursesForm = coursesForm;
        }