Exemplo n.º 1
0
        private void LoadUnivData()
        {
            UniversityInfoService dac = new UniversityInfoService();
            DataSet ds = dac.GetAllUniversity();

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

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