Пример #1
0
        /// <summary>
        /// 弹出视频窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void WestThroatVideo_Click(object sender, EventArgs e)
        {
            if (HCUserID != -1)
            {
                VideoZoomInWindow vziw = new VideoZoomInWindow();
                vziw.HCUserID = this.HCUserID;
                System.Windows.Forms.Control con = ((System.Windows.Forms.Control)sender);
                switch (con.Tag.ToString())
                {
                case "WestThroatVideo":
                    //vziw.Channle = iChannelNum[0];
                    con.Tag = "WestThroatVideo2";
                    VGVM.WestThroatVideoControl.Stop();
                    VGVM.WestThroatVideoControl = HC_SDKFactory.factory(HCUserID, VGVM.TV.WestThroat2.Channel + dwDCStartChannelNum + 1, WestThroatVideo.Handle, 0);
                    VGVM.WestThroatVideoControl.Play();
                    break;

                case "WestThroatVideo2":
                    //vziw.Channle = iChannelNum[0];
                    con.Tag = "WestThroatVideo";
                    VGVM.WestThroatVideoControl.Stop();
                    VGVM.WestThroatVideoControl = HC_SDKFactory.factory(HCUserID, VGVM.TV.WestThroat.Channel + dwDCStartChannelNum + 1, WestThroatVideo.Handle, 0);
                    VGVM.WestThroatVideoControl.Play();
                    break;

                case "EastThroatVideo":
                    //vziw.Channle = iChannelNum[1];
                    con.Tag = "WestThroatVideo2";
                    VGVM.EastThroatVideoControl.Stop();
                    VGVM.EastThroatVideoControl = HC_SDKFactory.factory(HCUserID, VGVM.TV.EastThroat2.Channel + dwDCStartChannelNum + 1, EastThroatVideo.Handle, 0);
                    VGVM.EastThroatVideoControl.Play();
                    break;

                case "EastThroatVideo2":
                    //vziw.Channle = iChannelNum[1];
                    con.Tag = "WestThroatVideo";
                    VGVM.EastThroatVideoControl.Stop();
                    VGVM.EastThroatVideoControl = HC_SDKFactory.factory(HCUserID, VGVM.TV.EastThroat.Channel + dwDCStartChannelNum + 1, EastThroatVideo.Handle, 0);
                    VGVM.EastThroatVideoControl.Play();
                    break;
                }
                //vziw.Show();
            }
        }
Пример #2
0
        /// <summary>
        /// 弹出视频窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void WestThroatVideo_Click(object sender, EventArgs e)
        {
            if (HCUserID != -1)
            {
                VideoZoomInWindow vziw = new VideoZoomInWindow();
                vziw.HCUserID = this.HCUserID;
                switch (((System.Windows.Forms.Control)sender).Tag.ToString())
                {
                case "WestThroatVideo":
                    vziw.Channle = iChannelNum[0];
                    break;

                case "EastThroatVideo":
                    vziw.Channle = iChannelNum[1];
                    break;
                }
                vziw.Show();
            }
        }
Пример #3
0
 private void w0_Click(object sender, EventArgs e)
 {
     if (HCUserID != -1)
     {
         VideoZoomInWindow vziw = new VideoZoomInWindow();
         vziw.HCUserID = this.HCUserID;
         //switch (((System.Windows.Forms.Control)sender).Tag.ToString())
         //{
         //    case "WestThroatVideo":
         //        vziw.Channle = iChannelNum[0];
         //        break;
         //    case "EastThroatVideo":
         //        vziw.Channle = iChannelNum[1];
         //        break;
         //}
         vziw.Channle = dwDCStartChannelNum + int.Parse(((System.Windows.Forms.Control)sender).Tag.ToString());
         vziw.Show();
     }
 }