Example #1
0
 public RegexTest()
 {
     InitializeComponent();
     FormHelper.InitHabitToForm(this);
     config           = StaticCacheManager.GetConfig <CatcherConfig>();
     this.txtUrl.Text = config.Url;
 }
Example #2
0
 public RegexTest()
 {
     InitializeComponent();
     FormHelper.InitHabitToForm(this);
     config=StaticCacheManager.GetConfig<CatcherConfig>();
     this.txtUrl.Text = config.Url;
 }
 public BaseAbstractCatcher()
 {
     config = StaticCacheManager.GetConfig<CatcherConfig>();
     if (config.Url == null || config.Url.Length == 0)
     {
         throw new ArgumentException("֩��Ҫ�����URL����Ϊ�գ�");
     }
 }
Example #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();
        }
Example #5
0
 public BaseAbstractCatcher()
 {
     config = StaticCacheManager.GetConfig <CatcherConfig>();
     if (config.Url == null || config.Url.Length == 0)
     {
         throw new ArgumentException("蜘蛛要捕获的URL不得为空!");
     }
 }