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

			return htmlView;
		}
Esempio n. 2
0
		void HelpBrowserWindowClose(object sender, EventArgs e)
		{
			htmlView = null;
		}
Esempio n. 3
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);
			}
		}