private void frmCourses_Load(object sender, EventArgs e)
        {
            Tafe_DataTier dt = new Tafe_DataTier();

            table = dt.viewCourses();


            foreach (DataRow row in table)
            {
                lbCourses.Items.Add(row["CourseID"].ToString() + "-->" + row["CourseName"].ToString());;
            }
        }
        private void frmViewEnrollments_Load(object sender, EventArgs e)
        {
            cbCourses.Text = "-Select Courset-";
            Tafe_DataTier dt = new Tafe_DataTier();

            table = dt.viewCourses();


            foreach (DataRow row in table)
            {
                cbCourses.Items.Add(row["CourseID"].ToString());;
            }
        }
Пример #3
0
        private void frmEnroll_Load(object sender, EventArgs e)
        {
            cbStudents.Text = "-Select Student-";
            studTable       = dt.viewStudents();
            foreach (DataRow row in studTable)
            {
                cbStudents.Items.Add(row["StudentID"].ToString());;
            }

            cbCourses.Text = "-Select Course-";
            courseTable    = dt.viewCourses();
            foreach (DataRow row in courseTable)
            {
                cbCourses.Items.Add(row["CourseID"].ToString());;
            }
        }
Пример #4
0
 public TafeDBDataSet.CourseDataTable viewCourses()
 {
     courseTA = new ABC_Ed_Services.TafeDBDataSetTableAdapters.CourseTableAdapter();
     TafeDBDataSet.CourseDataTable table = courseTA.GetData();
     return(table);
 }