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; }
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; }
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"); }
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"); }
public Sm(WebForm webForm, string strPageurl, string strhtml) : base(webForm, strPageurl, strhtml) { webForm.webBrowser_new.Navigate("www.m.sm.cn"); }