Exemple #1
0
        public void getEDPfromSearchManager()                 // SUCCESS
        {
            ALL_EDP.Clear();
            string url = Controls_URL.SearchManagerPage_URL();     // SERVICE MANAGER WAS USED

            System.Xml.XmlTextReader reader = new XmlTextReader(url);
            reader.ReadToFollowing("result");
            numfoundFromSearch = Convert.ToInt32(reader.GetAttribute("numFound"));
            reader.ReadToFollowing("int");
            while (reader.GetAttribute("name") == "EDP")
            {
                ALL_EDP.Add(Convert.ToInt32(reader.ReadElementString("int")));
                reader.ReadToFollowing("int");
            }
        }
Exemple #2
0
 public static List <String> AllBrand()  // GET ALL BRAND   Use This to show all brand
 {
     System.Xml.XmlTextReader reader = new XmlTextReader(Controls_URL.SearchManagerPage_URL());
     reader.ReadToFollowing("lst");
     reader.ReadToFollowing("lst");
     reader.ReadToFollowing("lst");
     reader.ReadToFollowing("lst");
     reader.ReadToFollowing("lst");
     while (reader.Read())
     {
         if ((reader.GetAttribute("name") == "Manufacturer"))
         {
             while (reader.ReadToFollowing("int") && (reader.GetAttribute("name") != "true") && (reader.GetAttribute("name") != "false"))
             {
                 BrandList.Add(Convert.ToString(reader.GetAttribute("name")));// show all EDP
             }
         }
     }
     return(BrandList);
 }