123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace CB.LotteryCatchData.Demo
- {
- public partial class CatchDemo : Form
- {
- public CatchDemo()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- var config = CB.LotteryCatchData.Config.CatchDataConfigs.GetConfig();
- if (null == config || null == config.List || 0 >= config.List.Count)
- {
- CB.Common.FileUtil.WriteLog("配置文件无效");
- return;
- }
- foreach (var item in config.List)
- {
- try
- {
- CB.LotteryCatchData.CatchData.CatchLotteryData(item);
- }
- catch (Exception ex)
- { CB.Common.FileUtil.WriteLog(string.Format(item.Name + "抓取异常:{0} \r\n", ex)); }
- }
- }
- }
- }
|