示例#1
0
 /// <summary>
 /// Constructs a new instance of the Plugin's settings form.
 /// </summary>
 public frmPluginSettings()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     settings = PluginSettings.Instance();
 }
示例#2
0
 /// <summary>
 /// Constructs a new instance of the <see cref="CrawlWave.ServerPlugins.UrlSelection.UrlSelectorPlugin"/> class.
 /// </summary>
 public WordCleanupPlugin()
 {
     dataDependent = true;
     description   = "CrawlWave WordCleanup Plugin";
     enabled       = true;
     host          = null;
     name          = "CrawlWave.ServerPlugins.WordCleanup";
     percent       = 0;
     settingsPath  = String.Empty;
     state         = PluginState.Stopped;
     version       = Assembly.GetExecutingAssembly().GetName().Version.ToString();
     settings      = PluginSettings.Instance();
     dbcon         = new SqlConnection(settings.DBConnectionString);
     pluginThread  = null;
     start         = 0;
     validChars    = new Hashtable();
     foreach (char c in Chars)
     {
         validChars.Add(c, null);
     }
     mustStop = false;
 }