mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Status text and password box border colors are updated according to database status Update composite key in Settings work Some code cleanup
32 lines
828 B
C#
32 lines
828 B
C#
using Windows.Storage;
|
|
using ModernKeePass.Common;
|
|
using Windows.Storage.AccessCache;
|
|
using ModernKeePass.Interfaces;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class RecentItemVm: NotifyPropertyChangedBase, ISelectableModel
|
|
{
|
|
private bool _isSelected;
|
|
|
|
public RecentItemVm() {}
|
|
public RecentItemVm(AccessListEntry entry, StorageFile file)
|
|
{
|
|
Token = entry.Token;
|
|
Name = entry.Metadata;
|
|
DatabaseFile = file;
|
|
}
|
|
|
|
public StorageFile DatabaseFile { get; }
|
|
public string Token { get; }
|
|
public string Name { get; }
|
|
public string Path => DatabaseFile?.Path;
|
|
|
|
public bool IsSelected
|
|
{
|
|
get { return _isSelected; }
|
|
set { SetProperty(ref _isSelected, value); }
|
|
}
|
|
}
|
|
}
|