예제 #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;
        }
예제 #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;
        }
예제 #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");
 }
예제 #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");
 }
예제 #5
0
파일: Sm.cs 프로젝트: Unwatch/RankHelper
 public Sm(WebForm webForm, string strPageurl, string strhtml) : base(webForm, strPageurl, strhtml)
 {
     webForm.webBrowser_new.Navigate("www.m.sm.cn");
 }