예제 #1
0
 public void InformFileRemoved(object sender, FileEventArgs e)
 {
     if (!e.IsDirectory)
     {
         recentFiles.RemoveItem(RecentFileStorage.ToUri(e.FileName));
         OnRecentFileChange();
     }
 }
예제 #2
0
 public override void NotifyFileRemoved(string fileName)
 {
     try {
         recentFiles.RemoveItem(RecentFileStorage.ToUri(fileName));
     } catch (Exception e) {
         LoggingService.LogError("Can't remove from recent files list.", e);
     }
 }
예제 #3
0
 public override void NotifyFileRemoved(string fileName)
 {
     System.Threading.ThreadPool.QueueUserWorkItem(_ => {
         try {
             recentFiles.RemoveItem(RecentFileStorage.ToUri(fileName));
         } catch (Exception e) {
             LoggingService.LogError("Can't remove from recent files list.", e);
         }
     });
 }
예제 #4
0
 public override void NotifyFileRemoved(string fileName)
 {
     recentFiles.RemoveItem(RecentFileStorage.ToUri(fileName));
 }