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)); }
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(); }