Пример #1
0
 public RegexTest()
 {
     InitializeComponent();
     FormHelper.InitHabitToForm(this);
     config           = StaticCacheManager.GetConfig <CatcherConfig>();
     this.txtUrl.Text = config.Url;
 }
Пример #2
0
 public RegexTest()
 {
     InitializeComponent();
     FormHelper.InitHabitToForm(this);
     config=StaticCacheManager.GetConfig<CatcherConfig>();
     this.txtUrl.Text = config.Url;
 }
Пример #3
0
 public BaseAbstractCatcher()
 {
     config = StaticCacheManager.GetConfig<CatcherConfig>();
     if (config.Url == null || config.Url.Length == 0)
     {
         throw new ArgumentException("֩��Ҫ�����URL����Ϊ�գ�");
     }
 }
Пример #4
0
        private void btnBegin_Click(object sender, EventArgs e)
        {
            CatcherConfig config  = StaticCacheManager.GetConfig <CatcherConfig>();
            object        obj     = ReflectHelper.CreateInstance(config.CatcherClassName);
            ICatcher      catcher = obj as ICatcher;

            catcher.Parse();
        }
Пример #5
0
 public BaseAbstractCatcher()
 {
     config = StaticCacheManager.GetConfig <CatcherConfig>();
     if (config.Url == null || config.Url.Length == 0)
     {
         throw new ArgumentException("蜘蛛要捕获的URL不得为空!");
     }
 }