コード例 #1
0
ファイル: ShowStudents.cs プロジェクト: NuhaAli/UniversityApp
        private void ShowStudents_Load(object sender, EventArgs e)
        {
            // Create object from StudentEntity to access GetStudent method
            StudentEntity studentEntity = new StudentEntity();
            // Create new list to save the students list returned from GetStudents method
            List <StudentEntity> stdList = studentEntity.GetStudents();

            // Show the content of student list on DataGridView
            dataGridView1.DataSource = stdList;
        }