public void FullScreenPlayWnd(System.Drawing.Point wndPoint) { if (!Framework.Container.Instance.VideoPlayService.IsPlayHitGraph(m_player.HWnd, wndPoint)) { m_player.FullScreen(); } }
private void OnBriefMouseClickChanged(BriefMouseClickInfo info) { bool isselected = Framework.Container.Instance.BriefVideoPlayService.IsSelectBriefMoveObj(m_player.HWnd); switch (info.MouseClickType) { case E_VDA_BRIEF_WND_MOUSE_OPT_TYPE.E_BRIEF_WND_MOUSE_LCLICK: try { if (Framework.Container.Instance.BriefVideoPlayService.IsSelectBriefMoveObj(m_player.HWnd)) { PauseBriefVideo(); } else { PlayOrPauseVideo(false); RaisePropertyChangedEvent("PlayBackBtnEnable"); } } catch (SDKCallException ex) { Common.SDKCallExceptionHandler.Handle(ex, "获取摘要视频是否选中运动物"); } //PlayBackBtnEnable = // Framework.Container.Instance.BriefVideoPlayService.IsSelectBriefMoveObj(m_player.HWnd); //if (PlayBackBtnEnable) // Framework.Container.Instance.BriefVideoPlayService.GetSelectBriefMoveObjInfo(m_player.HWnd); break; case E_VDA_BRIEF_WND_MOUSE_OPT_TYPE.E_BRIEF_WND_MOUSE_LDCLICK: if (isselected) { ObjectPlayBack(); } else { m_player.FullScreen(); } break; case E_VDA_BRIEF_WND_MOUSE_OPT_TYPE.E_BRIEF_WND_MOUSE_RCLICK: if (isselected) { Dictionary <string, DevExpress.XtraBars.ItemClickEventHandler> btnList = new Dictionary <string, DevExpress.XtraBars.ItemClickEventHandler>(); btnList.Add("目标回放", barBtn_ItemClick1); btnList.Add("保存目标图片", barBtn_ItemClick2); btnList.Add("转到以图搜图", barBtn_ItemClick3); m_player.ShowMenu(btnList, new Point((int)info.X, (int)info.Y)); } break; case E_VDA_BRIEF_WND_MOUSE_OPT_TYPE.E_BRIEF_WND_MOUSE_RDCLICK: break; } HasSelectedBriefObject = isselected; }