Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     label1.Text   = "频道信息加载中……";
     liveTVChannel = new LiveTVChannel();
     if (!liveTVChannel.GetChannel())
     {
         this.Close();
         return;
     }
     else if (liveTVChannel.size == 0)
     {
         this.Close();
         return;
     }
     label1.Text = "频道信息加载完成";
     chromeBrowser.Load(liveTVChannel.url[liveTVChannel.now]);
     this.Text   = (liveTVChannel.now + 1).ToString() + liveTVChannel.name[liveTVChannel.now] + liveTVChannel.url[liveTVChannel.now];
     label1.Text = this.Text;
     ShowWindow(FindWindow("Shell_TrayWnd", null), SW_HIDE);
     ShowWindow(FindWindow("Button", null), SW_HIDE);
     this.WindowState     = FormWindowState.Normal;
     this.FormBorderStyle = FormBorderStyle.None;
     this.WindowState     = FormWindowState.Maximized;
     _interceptor.StartCapturing();
 }
Exemple #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     this.Text     = "频道信息加载中……";
     label1.Text   = this.Text;
     liveTVChannel = new LiveTVChannel();
     backgroundWorker1.RunWorkerAsync();
     _interceptor.StartCapturing();
 }