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

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MyDocument.cs')
-rw-r--r--MyDocument.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/MyDocument.cs b/MyDocument.cs
index 49a7554..d802858 100644
--- a/MyDocument.cs
+++ b/MyDocument.cs
@@ -53,13 +53,13 @@ namespace macdoc
toolbarSearchEntry.StringValue = searchTerm;
tabSelector.SelectAt (2);
Search (searchTerm);
- Console.WriteLine ("Searched: '{0}'", searchTerm);
+ Logger.Log ("Searched: '{0}'", searchTerm);
}
}
public override bool ReadFromUrl (NSUrl url, string typeName, out NSError outError)
{
- Console.WriteLine ("ReadFromUrl : {0}", url.ToString ());
+ Logger.Log ("ReadFromUrl: {0}", url.ToString ());
outError = null;
// if scheme is not right, we ignore the url
@@ -242,16 +242,14 @@ namespace macdoc
internal void LoadUrl (string url, bool syncTreeView = false, HelpSource source = null, bool addToHistory = true)
{
- if (url.StartsWith ("#")) {
- Console.WriteLine ("FIXME: Anchor jump");
+ if (url.StartsWith ("#"))
return;
- }
// In case user click on an external link e.g. [Android documentation] link at bottom of MonoDroid docs
if (url.StartsWith ("http://")) {
UrlLauncher.Launch (url);
return;
}
- Console.WriteLine ("Loading {0}", url);
+ Logger.Log ("Loading {0}", url);
var ts = Interlocked.Increment (ref loadUrlTimestamp);
Task.Factory.StartNew (() => {
Node node;