Esempio n. 1
0
 public IRemoteUrl GetParsedUrlInfo()
 {
     if (URLInfo == null)
     {
         return(null);
     }
     IVideoInfo[] vis = VideoInfos.Where(dvi => dvi.Checked).ToArray();
     return(new RemoteUrl(URLInfo.SourceIp, URLInfo.SourcePort, URLInfo.BeginTime, URLInfo.EndTime, vis, null));
 }
Esempio n. 2
0
 private void doStartDownloadCmd()
 {
     if (URLInfo == null)
     {
         MessageBox.Show("解析到无效的URL。");
         return;
     }
     DownloadVideoInfo[] dvis = VideoInfos.Where(dvi => dvi.Checked).ToArray();
     if (dvis.Length == 0)
     {
         MessageBox.Show("未选中任何视频。");
         return;
     }
     if (string.IsNullOrWhiteSpace(DownloadName))
     {
         MessageBox.Show("无效的保存名称。");
         return;
     }
     OnStartDownload();
 }