Skip to content

Facilitating Easy and Efficient File Access in Desktop Applications, Mirroring Popular Features like "File History", "Last Opened Files", and "Recent Files" from Notable Editors and Design Applications

License

Notifications You must be signed in to change notification settings

pediRAM/RecentFilesHistory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

License Release NuGet

This is the english documentation. Following translations are available:

RecentFilesHistory Library

This Library Facilitating Easy and Efficient File Access in Desktop Applications, Mirroring Popular Feature like "Recent Files" or "Last Opened Files" or "File History" from Notable Editors and Design Applications.

Latest opened/saved/closed N files (text/image/project/...) are saved with LRU policy.

N: N is the configurable capacity.

Usage Example

Recent File History

UML Class Diagram

UML Class Diagram

How It Works

The library includes the generic abstract class RecentlyFilesHistoryManager<T>, which manages elements in the ObservableCollection<T> Items using an LRU (Least Recently Used) cache policy.

To add a file to the history, simply use the PutAtFront(item) method. If the item already exists in the collection, it will be moved to the first position (considered most recent).

To use this library, implement the generic abstract class by specifying the data type for the generic type. Then, implement the Load() and Save() methods to manage the history of recently opened, saved, and closed files.

Demo Project

You can explore the demo WPF desktop project, which demonstrates how to use the library to manage filepaths (strings).

About

Facilitating Easy and Efficient File Access in Desktop Applications, Mirroring Popular Features like "File History", "Last Opened Files", and "Recent Files" from Notable Editors and Design Applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages