private void intellToolStripMenuItem_Click(object sender, EventArgs e) { if (_filename != null) { _torrentFile.Modify(); treeView.Nodes.Clear(); var rootNode = _torrentFile.RootNode; rootNode.Expand(); treeView.Nodes.Add(rootNode); } }
public void BacthVonverse() { long tick = Environment.TickCount; IAnalyser btAnalyser = new CommonAnalyser(); foreach (FileInfo fInfo in _sourFilenameList) { if (!fInfo.Extension.Equals(".torrent")) { continue; // 过滤非BT文件 } TorrentFile torrentFile = new TorrentFile(); torrentFile.OpenFile(fInfo.FullName); torrentFile.Modify(); string newFilename = String.Format("{0}\\{1}", _destFolder, fInfo.Name); torrentFile.SaveFile(newFilename); } if (_callBackFunc != null) { _callBackFunc(String.Format("转换完毕, 总用时{0} 秒", (Environment.TickCount - tick) / 1000.0)); } }