Ejemplo n.º 1
0
 protected void DoDownProgress(IRecordFile sender, int progress, DownState state)
 {
     if (OnDownProgress != null)
     {
         OnDownProgress(sender, progress, state);
     }
 }
Ejemplo n.º 2
0
 private void DoRecordFileDownProgress(IRecordFile sender, int progress, DownState state)
 {
     if (OnRecordFileDownProgress != null)
     {
         OnRecordFileDownProgress(sender, progress, state);
     }
 }
Ejemplo n.º 3
0
        private void DoDownProgress(IRecordFile sender, int progress, DownState state)
        {
            if (progress == 100 || state != DownState.Norme)
            {
                sender.OnDownProgress -= new RECORDFILE_DOWNPROGRESS(DoDownProgress);

                if (progress == 100)
                {
                    MessageBox.Show(string.Format("下载{0}结束", sender.LocalFileName));
                }
            }
        }
Ejemplo n.º 4
0
        public bool StopDownload()
        {
            CHKDVRDevice device = mFactory.GetDevice(IP, UserName);

            if (device != null)
            {
                IRecordFile file = device.GetRecordFile();
                if (file != null)
                {
                    return(file.Stop());
                }
            }
            return(false);
        }
Ejemplo n.º 5
0
        public bool Download(string sFileName, string dFileName)
        {
            CHKDVRDevice device = mFactory.GetVideoDevice(IP, 8000, UserName, Password, true) as CHKDVRDevice;

            if (device != null)
            {
                IRecordFile file = device.GetRecordFile();
                if (file != null)
                {
                    return(file.Download(sFileName, dFileName));
                }
            }
            return(false);
        }
Ejemplo n.º 6
0
        public bool Download(DateTime startTime, DateTime stopTime, string fileName)
        {
            CHKDVRDevice device = mFactory.GetVideoDevice(IP, 8000, UserName, Password, true) as CHKDVRDevice;

            if (device != null)
            {
                IRecordFile file = device.GetRecordFile();
                if (file != null)
                {
                    return(file.Download(Channel, startTime, stopTime, fileName));
                }
            }
            return(false);
        }