Ejemplo n.º 1
0
        private void ListedItemsList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewItem item = this.ListedItemsList.GetItemAt(e.X, e.Y);
            string       link = item.SubItems[1].Text;

            Generals.OpenLink(link);
        }
        public void AddListedItems(List <string[]> ListedItems)
        {
            bool   foundOutOfStockItems = false;
            string alertState;

            HtmlNode     outOfStockContainer = Generals.FindNodes(this.document, "//div[@id='nav-out-of-stock']")[0];
            HtmlNode     inStockContainer    = Generals.FindNodes(this.document, "//div[@id='nav-in-stock']")[0];
            ref HtmlNode nodeToAppendTo      = ref outOfStockContainer;
Ejemplo n.º 3
0
        private void parseStock()
        {
            string          response = this.Get("http://www.creationwatches.com/products_googlebase.xml");
            List <string[]> xmlNodes = GetParsedXml(response);

            this.ParseHtml();
            this.HtmlHandler.UpdateStock(xmlNodes);
            this.HtmlHandler.AddListedItems(this.ListedItems);
            Generals.OpenLink(HtmlHandler.HtmlFileName);
        }
Ejemplo n.º 4
0
 private void ParseHtml()
 {
     try
     {
         this.HtmlHandler = new HtmlHandler();
     }
     catch (FileNotFoundException)
     {
         Generals.RaiseAlert($"Failed to find '{HtmlHandler.HtmlFileName}' in the directory!!!");
         this.Close();
     }
 }
Ejemplo n.º 5
0
 private void LoadXml()
 {
     try
     {
         this.xmlDoc = new XmlDocument();
         this.xmlDoc.Load(XmlFileName);
     }
     catch (FileNotFoundException)
     {
         Generals.RaiseAlert($"Can't find the Xml file!!! ({XmlFileName})");
         Close();
     }
 }