Example #1
0
        void Add(string grp, string fileName, string displayName)
        {
            var mime       = "text/plain";      //DesktopService.GetMimeTypeForUri (fileName);
            var uri        = RecentFileStorage.ToUri(fileName);
            var recentItem = new RecentItem(uri, mime, grp)
            {
                Private = displayName
            };

            recentFiles.AddWithLimit(recentItem, grp, ItemLimit);
        }
Example #2
0
 public FdoRecentFiles(string storageFile)
 {
     recentFiles = new RecentFileStorage(storageFile);
     recentFiles.RemoveMissingFiles(projGroup, fileGroup, workspaceGroup);
 }
Example #3
0
 public void Dispose()
 {
     recentFiles.Dispose();
     recentFiles = null;
 }
Example #4
0
 public override void NotifyFileRenamed(string oldName, string newName)
 {
     recentFiles.RenameItem(RecentFileStorage.ToUri(oldName), RecentFileStorage.ToUri(newName));
 }
Example #5
0
 public override void NotifyFileRemoved(string fileName)
 {
     recentFiles.RemoveItem(RecentFileStorage.ToUri(fileName));
 }
Example #6
0
 public FdoRecentFiles(string storageFile)
 {
     recentFiles = new RecentFileStorage (storageFile);
     recentFiles.RemoveMissingFiles (projGroup, fileGroup,workspaceGroup);
 }
Example #7
0
 public void Dispose()
 {
     recentFiles.Dispose ();
     recentFiles = null;
 }