mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
Implements Recycle Bin (new group creation still needs to be implemented) Code refactoring
30 lines
817 B
C#
30 lines
817 B
C#
using Windows.Storage;
|
|
using ModernKeePass.Common;
|
|
using Windows.Storage.AccessCache;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class RecentItemVm: NotifyPropertyChangedBase
|
|
{
|
|
private bool _isSelected;
|
|
|
|
public RecentItemVm(AccessListEntry entry, StorageFile file)
|
|
{
|
|
Token = entry.Token;
|
|
Name = entry.Metadata;
|
|
DatabaseFile = file;
|
|
}
|
|
|
|
public StorageFile DatabaseFile { get; private set; }
|
|
public string Token { get; private set; }
|
|
public string Name { get; private set; } = "Recent file";
|
|
public string Path => DatabaseFile.Path;
|
|
|
|
public bool IsSelected
|
|
{
|
|
get { return _isSelected; }
|
|
internal set { SetProperty(ref _isSelected, value); }
|
|
}
|
|
}
|
|
}
|