public IViewContent CreateContentForFile(string fileName) { HtmlView htmlView = new HtmlView(); htmlView.LoadFile(fileName); return(htmlView); }
void DoubleClick(object sender, EventArgs e) { TreeNode node = treeView.SelectedNode; if (node.Tag != null) { string navigationName = "mk:@MSITStore:" + helpPath + node.Tag.ToString(); if (htmlView == null) { htmlView = new HtmlView(); WorkbenchSingleton.Workbench.ShowView(htmlView); htmlView.CloseEvent += new EventHandler(HelpBrowserWindowClose); } htmlView.LoadFile(navigationName); } }