public void InformFileRemoved(object sender, FileEventArgs e) { if (!e.IsDirectory) { recentFiles.RemoveItem(RecentFileStorage.ToUri(e.FileName)); OnRecentFileChange(); } }
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); } }
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); } }); }
public override void NotifyFileRemoved(string fileName) { recentFiles.RemoveItem(RecentFileStorage.ToUri(fileName)); }