// static void => call it if you want to raise the HtmlParsingDoneEvent public static void ParseHtml(string sFullPath, int iMaxTimeExecution, HtmlParsingDoneEventHandler myHtmlParsingDoneEvent) { using (HTMLParserWrapper myHTMLParser = new HTMLParserWrapper(sFullPath, iMaxTimeExecution, myHtmlParsingDoneEvent)) { // nothing to do } }