资源简介

基于时间轴的视频文件检索,本来已经有个程序了,可以进行反编译查看源代码,有些人不会反编译,所以把源代码也放上来了。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using jn.isos.video;
using justin.time.axis;
namespace TestMarker
{
    public partial class Form1 : Form
    {
        private EventSearch m_eventSearch;
        public Form1()
        {
            InitializeComponent();
            m_eventSearch = new EventSearch();
            m_eventSearch.ID = 2;
        }

        private void timeline1_BookmarkAdd()
        {
           
        }

        private void Form1_Load(object sender EventArgs e)
        {
            m_eventSearch.Handle = this.Handle.ToInt32();
            m_eventSearch.Init();
            
        }
        private void SearchFileFinished2()
        {
          

        }
        private void button1_Click(object sender EventArgs e)
        {

         
        }
        private void AddItem(Color clr)
        {
            TimelineItem ti = new TimelineItem();
            ti.BackColor = clr;
            ti.BorderLeft = DateTime.Now.AddHours(-15);
            ti.BorderRight = DateTime.Now.AddHours(15);
            ti.Height = 20;
            for (int s = 0; s < 100; s++)
            {
                SourceInfo sr = new SourceInfo();
                sr.TimeInterval = TimeInterval.LastHours(s - 50);
                sr.Name = “xx“;
                for (int i = 0; i < 10; i++)
                {
                    objectEvent re = new objectEvent(DateTime.Now “alarm“ + i EventDisplayType.triangle);
                    re.EvenTime = DateTime.Now.Add(new TimeSpan(s i 0));
                    sr.RecordingEvents.Add(re);
                }
                ti.Source.Add(sr);
            }           
        }

        private void timeline1_ExportEndTimeChanged()
        {
           // timeline1.SetExportEndMarker();
        }

        private void timeline1_ExportStartTimeChanged()
        {
           // timeline1.SetExportStartMarker();
        }

        private void button1_Click_1(object sender EventArgs e)
        {
            //m_eventSearch.Searchobject.DvrType = Convert.ToInt32(m_dvrType.Text);
            ServerInfo serinfo = new ServerInfo();
            serinfo.ip = m_dvrip.Text;
            serinfo.userName=m_dvrName.Text;
                serinfo.password= m_password.Text;
                serinfo.port = Convert.ToInt32(m_dvrPort.Text);
                serinfo.index = Convert.ToInt32(m_channelIndex.Text);
            m_eventSearch.Searchobject.ServerIP = m_dvrip.Text;
            m_eventSearch.Searchobject.ServerPort = Convert.ToInt32(m_dvrPort.Text);                
            m_eventSearch.Searchobject.ChannelNO = Convert.ToInt32(m_channelIndex.Text);
            m_eventSearch.Searchobject.UserName = m_dvrName.Text;
            m_eventSearch.Searchobject.Password = m_password.Text;

       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-29 14:02  TestMarker\
     文件        9328  2012-05-07 16:23  TestMarker\Form1.Designer.cs
     文件        3649  2012-05-22 18:10  TestMarker\Form1.cs
     文件        5817  2012-05-07 16:23  TestMarker\Form1.resx
     文件         502  2012-03-29 14:02  TestMarker\Program.cs
     目录           0  2012-03-29 14:02  TestMarker\Properties\
     文件        1440  2012-03-29 14:02  TestMarker\Properties\AssemblyInfo.cs
     文件        2846  2012-03-29 14:02  TestMarker\Properties\Resources.Designer.cs
     文件        5612  2012-03-29 14:02  TestMarker\Properties\Resources.resx
     文件        1093  2012-03-29 14:02  TestMarker\Properties\Settings.Designer.cs
     文件         249  2012-03-29 14:02  TestMarker\Properties\Settings.settings
     文件        4295  2012-04-18 15:43  TestMarker\TestMarker.csproj
     目录           0  2012-03-29 14:02  TestMarker\bin\
     目录           0  2012-12-21 10:12  TestMarker\bin\Debug\
     文件       16384  2012-05-23 12:42  TestMarker\bin\Debug\AxInterop.EasyHikEmbHcPlaybackLib.dll
     文件       16384  2012-05-23 12:42  TestMarker\bin\Debug\Interop.EasyHikEmbHcPlaybackLib.dll
     文件       11776  2009-06-18 14:54  TestMarker\bin\Debug\Interop.EasyHikEmbHcSearchLib.dll
     文件       13312  2012-12-24 15:25  TestMarker\bin\Debug\TestMarker.exe
     文件       28160  2012-12-24 15:25  TestMarker\bin\Debug\TestMarker.pdb
     文件       11600  2012-12-24 15:22  TestMarker\bin\Debug\TestMarker.vshost.exe
     文件         490  2010-03-17 22:39  TestMarker\bin\Debug\TestMarker.vshost.exe.manifest
     文件       33792  2012-12-24 15:25  TestMarker\bin\Debug\TimeAxis.dll
     文件       87552  2012-12-24 15:25  TestMarker\bin\Debug\TimeAxis.pdb
     文件       17920  2012-12-24 15:25  TestMarker\bin\Debug\TimeAxisPlayer.dll
     文件       54784  2012-12-24 15:25  TestMarker\bin\Debug\TimeAxisPlayer.pdb
     目录           0  2012-03-29 14:02  TestMarker\obj\
     目录           0  2012-03-29 14:02  TestMarker\obj\x86\
     目录           0  2012-12-24 15:25  TestMarker\obj\x86\Debug\
     文件       32173  2012-05-07 16:21  TestMarker\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6443  2012-12-24 15:25  TestMarker\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         200  2012-05-07 16:23  TestMarker\obj\x86\Debug\GenerateResource.read.1.tlog
............此处省略95个文件信息

评论

共有 条评论