Beispiel #1
0
        public void InitTab()
        {
            statisticsForm          = new StatisticsForm();
            statisticsForm.TopLevel = false;
            tabControlTop.TabPages[0].Controls.Add(statisticsForm);
            //statisticsForm.Parent = tabControlTop.TabPages[0];
            statisticsForm.Show();
            //statisticsForm.Parent = this;

            settingForm          = new SettingForm();
            settingForm.TopLevel = false;
            tabControlTop.TabPages[1].Controls.Add(settingForm);
            settingForm.Show();

            webForm = new WebForm();

            webForm.TopLevel = false;
            webForm.Show();
            this.panel.Hide();
            this.panel.BringToFront();
            this.panel.Controls.Add(webForm);

            adslForm          = new AdslForm();
            adslForm.TopLevel = false;
            tabControlTop.TabPages[2].Controls.Add(adslForm);
            adslForm.Show();

            //tabControlTop.SelectedIndexChanged += new EventHandler(SelectedIndexChanged_tabControlTop);
            tabControlTop.Dock = DockStyle.Fill;
        }
Beispiel #2
0
        public WebBase(WebForm webForm, string strSiteUrl, string strhtml)
        {
            this.webForm    = webForm;
            this.strSiteUrl = strSiteUrl;
            this.strhtml    = strhtml;
            nPageIndex      = 1;

            this.taskIntervalTimer           = new System.Timers.Timer();
            this.taskIntervalTimer.Elapsed  += new System.Timers.ElapsedEventHandler(taskIntervalTimer_Elapsed);
            this.taskIntervalTimer.AutoReset = true;
            this.taskIntervalTimer.Interval  = 1000 * 60 * 2;
            this.taskIntervalTimer.Enabled   = false;
        }
Beispiel #3
0
 public Baidu(WebForm webForm, string strSiteUrl, string strhtml) : base(webForm, strSiteUrl, strhtml)
 {
     nPos_x = 30;
     nPos_y = 70;
     webForm.webBrowser_new.Navigate("www.baidu.com");
 }
Beispiel #4
0
 public Sogou(WebForm webForm, string strSiteUrl, string strhtml) : base(webForm, strSiteUrl, strhtml)
 {
     nPos_x = 30;
     nPos_y = 80;
     webForm.webBrowser_new.Navigate("www.sogou.com");
 }
Beispiel #5
0
 public Sm(WebForm webForm, string strPageurl, string strhtml) : base(webForm, strPageurl, strhtml)
 {
     webForm.webBrowser_new.Navigate("www.m.sm.cn");
 }