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:
authorJeremie Laval <jeremie.laval@gmail.com>2012-02-14 23:25:59 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-02-15 21:29:50 +0400
commit986afa593b9f4e4d485bdc9f29a40a1d61c4c682 (patch)
tree19a81c393e96b748f08b6d3d947f6be7c08b3630 /AppDelegate.cs
parentd5b32e3670d5749f539a7a6d01c33e1b2f7d03cd (diff)
[macdoc] Add bookmark support
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r--AppDelegate.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index d06f2a5..e343d24 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -60,6 +60,7 @@ namespace macdoc
Directory.CreateDirectory (macDocPath);
IndexUpdateManager = new IndexUpdateManager (Root.HelpSources.Cast<HelpSource> ().Select (hs => Path.Combine (hs.BaseFilePath, hs.Name + ".zip")).Where (File.Exists),
macDocPath);
+ BookmarkManager = new BookmarkManager (macDocPath);
// Configure the documentation rendering.
SettingsHandler.Settings.EnableEditing = false;
@@ -82,7 +83,12 @@ namespace macdoc
public static IndexUpdateManager IndexUpdateManager {
get;
- set;
+ private set;
+ }
+
+ public static BookmarkManager BookmarkManager {
+ get;
+ private set;
}
public override void WillFinishLaunching (NSNotification notification)
@@ -126,6 +132,11 @@ namespace macdoc
{
controller.CurrentDocument.PrintDocument (sender);
}
+
+ public override void WillTerminate (NSNotification notification)
+ {
+ BookmarkManager.SaveBookmarks ();
+ }
}
}