示例#1
0
        private void LoadUnivData()
        {
            UniversityInfoService dac = new UniversityInfoService();
            DataSet ds = dac.GetAllUniversity();

            UniversityGrid.DataSource = ds.Tables[0];
            dac.Dispose();
        }
示例#2
0
        private void LoadMajorData()
        {
            UnivMajorGrid.Refresh();
            UniversityInfoService service = new UniversityInfoService();
            DataSet ds = service.GetSearchMajor(txtMajorSearch.Text);

            UnivMajorGrid.DataSource = ds.Tables[0];
            service.Dispose();
        }