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