public IViewContent CreateContentForFile(string fileName)
        {
            HtmlView htmlView = new HtmlView();

            htmlView.LoadFile(fileName);

            return(htmlView);
        }
Exemplo n.º 2
0
        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);
            }
        }