protected void DoDownProgress(IRecordFile sender, int progress, DownState state) { if (OnDownProgress != null) { OnDownProgress(sender, progress, state); } }
private void DoRecordFileDownProgress(IRecordFile sender, int progress, DownState state) { if (OnRecordFileDownProgress != null) { OnRecordFileDownProgress(sender, progress, state); } }
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)); } } }
public bool StopDownload() { CHKDVRDevice device = mFactory.GetDevice(IP, UserName); if (device != null) { IRecordFile file = device.GetRecordFile(); if (file != null) { return(file.Stop()); } } return(false); }
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); }
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); }