public SortResultWindow(StudentBaseController controller) { InitializeComponent(); DBController = controller; StudentList = DBController.GetStudentList(); UniversityList = DBController.GetUniversityList(); ResultLabel.Text = GetResults(); }
public UniversityCollection GetUniversityList() { if (UniversityList == null) { UniversityList = new UniversityCollection( (from c in Context.GetTable <University>() select c).ToArray() ); } return(UniversityList); }