Exemplo n.º 1
0
        public void Showdata(int index)
        {
            DataRow dr = course.GetAllCourses().Rows[index];

            ListBoxControl.SelectedIndex = index;
            ID_Course.Text          = dr.ItemArray[0].ToString();
            NameCourse.Text         = dr.ItemArray[1].ToString();
            Period_updown.Value     = Convert.ToInt32(dr.ItemArray[2].ToString());
            Rich_decs.Text          = dr.ItemArray[3].ToString();
            ComboxBox_Semester.Text = dr.ItemArray[4].ToString();
        }
        private void Print_Course_Load(object sender, EventArgs e)
        {
            Courses course = new Courses();

            CourseDataGridView.DataSource = course.GetAllCourses();
        }