public RegexTest() { InitializeComponent(); FormHelper.InitHabitToForm(this); config = StaticCacheManager.GetConfig <CatcherConfig>(); this.txtUrl.Text = config.Url; }
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����Ϊ�գ�"); } }
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不得为空!"); } }