title: passing parameter to an event handler
body: <p>i want to pass my <code>List&lt;string&gt;</code> as parameter using my event</p>
  
  <pre><code>public event EventHandler _newFileEventHandler;
      List&lt;string&gt; _filesList = new List&lt;string&gt;();
  
  public void startListener(string directoryPath)
  {
      FileSystemWatcher watcher = new FileSystemWatcher(directoryPath);
      _filesList = new List&lt;string&gt;();
      _timer = new System.Timers.Timer(5000);
      watcher.Filter = "*.pcap";
      watcher.Created += watcher_Created;            
      watcher.EnableRaisingEvents = true;
      watcher.IncludeSubdirectories = true;
  }
  
  void watcher_Created(object sender, FileSystemEventArgs e)
  {            
      _timer.Elapsed += new ElapsedEventHandler(myEvent);
      _timer.Enabled = true;
      _filesList.Add(e.FullPath);
      _fileToAdd = e.FullPath;
  }
  
  private void myEvent(object sender, ElapsedEventArgs e)
  {
      _newFileEventHandler(_filesList, EventArgs.Empty);;
  }
  </code></pre>
  
  <p>and from my main form i want to get this List:</p>
  
  <pre><code>void listener_newFileEventHandler(object sender, EventArgs e)
  {
  
  }
  </code></pre>