Exemple #1
0
        private void populateResults3()
        {
            if (txtKeyword.Text.Contains(' '))
            {
                string[] name = txtKeyword.Text.Split(' ');
                instructor = new Instructor(name[0], name[1]);
            }
            else
            {
                instructor = new Instructor(txtKeyword.Text, txtKeyword.Text);
            }
            string Days = "", startTime = "", startTime1 = "";

            Days = getDays(pnlDays4);
            if (timingProvided)
            {
                startTime = cboStartTime4.SelectedItem.ToString(); startTime1 = cboEndTime4.SelectedItem.ToString();
            }

            DataSet ds = new DataSet();

            ds = cs.findCoursesbyKeyword(term, instructor, txtKeyword.Text, Days, startTime, startTime1);
            var resultsForm = new frmResults(ds, term);

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }
Exemple #2
0
        private void populateResults2()
        {
            if (cboInstructors3.SelectedIndex >= 0)
            {
                string[] name = cboInstructors3.SelectedItem.ToString().Split(' ');
                instructor = new Instructor(name[0], name[1]);
            }
            string Days = "", startTime = "", startTime1 = "";

            Days = getDays(pnlDays3);
            if (timingProvided)
            {
                startTime = cboStartTime3.SelectedItem.ToString(); startTime1 = cboEndTime3.SelectedItem.ToString();
            }

            DataSet ds = new DataSet();

            ds = cs.findCoursesbyInstructor(term, instructor, Days, startTime, startTime1);

            var resultsForm = new frmResults(ds, term);

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }
Exemple #3
0
        private void populateSearchResults(DataSet ds)
        {
            tabindex = tabControl1.SelectedIndex;
            var resultsForm = new frmResults(ds, term);

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }
Exemple #4
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            getSelections5();


            DataSet ds = new DataSet();

            ds       = cs.findCourses(term, subjects, cboCourse.SelectedItem.ToString(), txtCourseNo.Text, building, instructor, txtCreditHours.Text, exclude, distanceLearning, creditcoursesprovided, courseOfferings);
            tabindex = tabControl1.SelectedIndex;
            var resultsForm = new frmResults(ds, term);

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }
Exemple #5
0
        private void populateResults4()
        {
            string Days = "", startTime = "", startTime1 = "";

            Days = getDays(pnlDays5);
            if (timingProvided)
            {
                startTime = cboStartTime5.SelectedItem.ToString(); startTime1 = cboEndTime5.SelectedItem.ToString();
            }

            DataSet ds = new DataSet();

            ds = cs.findClasses(new Building(cboLocations3.SelectedItem.ToString()), txtRoomNo.Text, Days, startTime, startTime1);
            var resultsForm = new frmResults(ds, new Term("", DateTime.Now.Year));

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }
Exemple #6
0
        private void populateResults()
        {
            if (cboInstructors2.SelectedIndex >= 0)
            {
                string[] name = cboInstructors2.SelectedItem.ToString().Split(' ');
                instructor = new Instructor(name[0], name[1]);
            }
            string CourseType = "", CourseStatus = "", Days = "", startTime = "", startTime1 = "", CreditHrs1 = "", CreditHrs2 = "";

            if (courseTypeSelected)
            {
                CourseType = cboCourse.SelectedItem.ToString();
            }
            if (courseStatusSelected)
            {
                CourseStatus = cboCrsTypes.SelectedItem.ToString();
            }
            if (daySelected)
            {
                Days = getDays(pnlDays2);
            }
            if (timingProvided)
            {
                startTime = cboStartTime2.SelectedItem.ToString(); startTime1 = cboEndTime2.SelectedItem.ToString();
            }
            if (creditHoursProvided)
            {
                CreditHrs1 = cboCreditHrs1.SelectedItem.ToString(); CreditHrs2 = cboCreditHrs2.SelectedItem.ToString();
            }
            DataSet ds = new DataSet();

            ds = cs.findCourses(term, subject, building, instructor, txtCrsNo.Text, CourseType, CourseStatus, Days, txtTitle.Text, startTime, startTime1, CreditHrs1, CreditHrs2);
            var resultsForm = new frmResults(ds, term);

            resultsForm.Show();
            resultsForm.Activate();
            this.Hide();
        }