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;
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); }
private void ParseHtml() { try { this.HtmlHandler = new HtmlHandler(); } catch (FileNotFoundException) { Generals.RaiseAlert($"Failed to find '{HtmlHandler.HtmlFileName}' in the directory!!!"); this.Close(); } }
private void LoadXml() { try { this.xmlDoc = new XmlDocument(); this.xmlDoc.Load(XmlFileName); } catch (FileNotFoundException) { Generals.RaiseAlert($"Can't find the Xml file!!! ({XmlFileName})"); Close(); } }