예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            n11Service n11 = new n11Service();
            //n11.getCityList();
            var tlc = n11.GetTopLevelCategories();

            pgc1.DataSource = tlc;
            pgc1.RetrieveFields();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            n11Service             n11 = new n11Service();
            List <SubCategoryData> sbc = n11.GetSubCategories(Convert.ToInt64(edsc.Text));
            //foreach (SubCategory sc in sbc.)
            var sct = (from p in sbc select p.subCategoryList).ToList();

            pgc1.DataSource = sct;
            pgc1.RetrieveFields();
        }