/// <summary> /// 双击放大视频 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ucSinglePanle_DoubleClick(object sender, EventArgs e) { int iTag = Convert.ToInt32(((Panel)sender).Tag); //this.Visible = false; m_fmFullScreen.Left = 0; m_fmFullScreen.Top = 0; m_fmFullScreen.Width = Screen.PrimaryScreen.Bounds.Width; m_fmFullScreen.Height = Screen.PrimaryScreen.Bounds.Height; if (m_bIsConnect) { switch (m_iCamType) { case 1: //自己api m_fmFullScreen.Visible = true; m_fmFullScreen.ChangeHandle(m_lHandle, ucSinglePanle.Handle, m_iCamType); break; case 2: //海康api m_fmFullScreen.Visible = true; m_fmFullScreen.StartPlayHik(m_iLoginHandle, m_sStartTime, m_sEndTime, m_iChannel, m_iCamType); string sPlayTime = Convert.ToString(Convert.ToUInt64(GetFilePlayTimeHik()) + (Convert.ToUInt64(GetCurrentPlayTime()) - 10)); CHCNetSDK.NET_DVR_TIME oPlayTime = GetTimeObjectHik(sPlayTime); Thread.Sleep(800); m_fmFullScreen.SetPlayPlanHik(oPlayTime); break; } } }
/// <summary> /// 双击放大视频 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ucSinglePanle_DoubleClick(object sender, EventArgs e) { int iTag = Convert.ToInt32(((Panel)sender).Tag); //this.Visible = false; m_fmFullScreen.Left = 0; m_fmFullScreen.Top = 0; m_fmFullScreen.Width = Screen.PrimaryScreen.Bounds.Width; m_fmFullScreen.Height = Screen.PrimaryScreen.Bounds.Height; if (m_bIsConnect) { switch (m_iCamType) { case 1: //自己api m_fmFullScreen.Visible = true; m_fmFullScreen.ChangeHandle(m_lHandle, ucSinglePanle.Handle, m_iCamType); break; case 2: //海康api m_fmFullScreen.Visible = true; m_fmFullScreen.StartPlayHik(m_iLoginHandle, m_sStartTime, m_sEndTime, m_iChannel, m_iCamType); Thread.Sleep(500); m_fmFullScreen.SetPlayPlanHik(GetReplayOSDTime()); break; } } }