Пример #1
0
        public void WriteToFile()
        {
            var p    = new BookProvider();
            var book = p.Get("E:\\迅雷下载\\test.txt");
            var b    = new RpyBuilder();

            b.WriteToFile(book.List);
        }
Пример #2
0
        private void BtnStart_Click(object sender, RoutedEventArgs e)
        {
            var file = this.TbFile.Text;
            var path = this.TbPathSave.Text;

            LogText("任务开始");
            Task task = Task.Run(() => {
                var p    = new BookProvider();
                var book = p.Get(file);
                var b    = new RpyBuilder();
                b.WriteToFile(book.List);
            });

            task.ContinueWith((t) => { LogText("任务完成"); });
        }