Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'windoc/WinDoc/MainWindow.cs')
-rw-r--r--windoc/WinDoc/MainWindow.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/windoc/WinDoc/MainWindow.cs b/windoc/WinDoc/MainWindow.cs
index d9d0cbf4..730013d7 100644
--- a/windoc/WinDoc/MainWindow.cs
+++ b/windoc/WinDoc/MainWindow.cs
@@ -1,4 +1,5 @@
using System;
+using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
@@ -233,7 +234,9 @@ namespace WinDoc
void LoadHtml (string html)
{
loadedFromString = true;
- docBrowser.DocumentText = html;
+ var documentUri = Path.Combine (Program.MonoDocDir, "doc.html");
+ File.WriteAllText (documentUri, html);
+ docBrowser.Navigate ("file://" + Path.GetFullPath (documentUri));
}
bool ShowNodeInTree (Node node)