示例#1
0
        public Main()
        {
            wbf = new WebForm();
            wbf.Show();
            wbf.Hide();

            // create interaces
            yho = new Yahoo(cap);
            mkw = new MarketWatch(cap);
            msn = new MoneyCentral(cap);
            mst = new MorningStar(cap);
            opt = new Optionetics(cap, wbf);
            wir = new WorldInterestRate(cap);

            // update feature list
            feature_list.Add(FeaturesT.SUPPORTS_DELAYED_OPTIONS_CHAIN);
            feature_list.Add(FeaturesT.SUPPORTS_DELAYED_STOCK_QUOTE);
            feature_list.Add(FeaturesT.SUPPORTS_CONFIG_FORM);

            // update server list
            server_list.Add(Name);

            // load configuration from file
            Load();
        }
示例#2
0
        public static HtmlElement LocateParentElement(HtmlDocument doc, string text, int index, string parent)
        {
            // locate text element
            List <HtmlElement> elem_list = new List <HtmlElement>();

            WebForm.LocateTextByWebBrowser(doc.Body, text, elem_list);
            if (elem_list.Count == 0)
            {
                return(null);
            }

            // locate table of text element
            return(WebForm.LocateParentElement(elem_list[index], parent));
        }
示例#3
0
 public Optionetics(WebCapture cap, WebForm wbf)
 {
     this.cap = cap;
     this.wbf = wbf;
 }