void ucSingleBriefPlayWnd1_MoveObjectClick(ucSingleBriefPlayWnd arg1, DataModel.BriefMoveobjInfo arg2) { StringBuilder sb = new StringBuilder(); sb.AppendLine("MoveObjID:" + arg2.MoveObjID); sb.AppendLine("MoveObjType:" + arg2.MoveObjType); sb.AppendLine("MoveObjColor:" + arg2.MoveObjColor); sb.AppendLine("BeginTimeS:" + arg2.BeginTimeS); sb.AppendLine("EndTimeS:" + arg2.EndTimeS); //MessageBox.Show(sb.ToString()); VodInfo vod = new VodInfo() { EndTime = arg2.EndTimeS, IsPlayAllFile = false, PlayWnd = IntPtr.Zero, StartTime = arg2.BeginTimeS, }; if (IsPlay4OCX) { vod.VideoTaskUnitID = 0; if (MoveObjectDClick4OCX != null) { MoveObjectDClick4OCX(arg2); } } else { vod.VideoTaskUnitID = Task.TaskId; WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <BriefObjectPlayBackEvent>().Publish(vod); } }
void ucSinglePlayWnd_PropertyChanged(object sender, PropertyChangedEventArgs e) { ucSingleBriefPlayWnd wnd = sender as ucSingleBriefPlayWnd; if (e.PropertyName == "VideoStatus") { SetButtonStatus(); } if (e.PropertyName == "VideoStatusString") { SetPlayStatusText(); } if (e.PropertyName == "VideoTime") { UpdataTime(); } }
private void labelX2_DragDrop(object sender, DragEventArgs e) { ucSingleBriefPlayWnd p = sender as ucSingleBriefPlayWnd; Type dataType = typeof(DevComponents.AdvTree.Node); if (e.Data.GetDataPresent(dataType)) { DevComponents.AdvTree.Node node = (DevComponents.AdvTree.Node)e.Data.GetData(dataType); TaskInfoV3_1 task = node.Tag as TaskInfoV3_1; if (task != null) { TaskBriefMSSInfoV3_1 mssinfo = m_viewModel.GetMssTaskInfo(task.TaskId); if (mssinfo != null) { p.VideoName = task.TaskName; p.StartPlayBrief(mssinfo.MssHostIp, mssinfo.MssHostPort, mssinfo.BriefDataPath, mssinfo.BriefIndexPath); } //p.StartPlayBrief(1, "192.168.42.31", 12050, @"F:/Brief/440303581001东晓路罗湖区文化馆阶梯旁.data", @"F:/Brief/440303581001东晓路罗湖区文化馆阶梯旁.brief"); } } }
void ucSinglePlayWnd_MouseClickEx(object sender, MouseEventArgs e) { ucSingleBriefPlayWnd wnd = sender as ucSingleBriefPlayWnd; }