Esempio n. 1
0
        private void wnd_DragDrop(object sender, DragEventArgs e)
        {
            ucSinglePlayWnd p = sender as ucSinglePlayWnd;


            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)
                {
                    TaskMSSInfoV3_1 mssinfo = m_viewModel.GetMssTaskInfo(task.TaskId);
                    if (mssinfo != null)
                    {
                        p.VideoName = task.TaskName;
                        p.StartPlayBack(mssinfo.MssHostIp, mssinfo.MssHostPort, mssinfo.VideoPath, 0, 0);
                    }
                    else
                    {
                        DevComponents.DotNetBar.MessageBoxEx.Show("无此视频文件", Framework.Environment.PROGRAM_NAME, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    }
                }
            }
        }
Esempio n. 2
0
 private void buttonX1_Click(object sender, EventArgs e)
 {
     currWnd.StartPlayBack(textBoxIP.Text, Convert.ToUInt32(textBoxPort.Text), textBoxPath.Text, 0, 0);
 }