mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 07:30:15 -04:00
38 lines
831 B
C#
38 lines
831 B
C#
using GalaSoft.MvvmLight;
|
|
using ModernKeePass.Domain.Dtos;
|
|
|
|
namespace ModernKeePass.ViewModels.ListItems
|
|
{
|
|
public class RecentItemVm: ObservableObject
|
|
{
|
|
private string _name;
|
|
private string _token;
|
|
private string _path;
|
|
|
|
public string Token
|
|
{
|
|
get { return _token; }
|
|
set { Set(() => Token, ref _token, value); }
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
set { Set(() => Name, ref _name, value); }
|
|
}
|
|
|
|
public string Path
|
|
{
|
|
get { return _path; }
|
|
set { Set(() => Path, ref _path, value); }
|
|
}
|
|
|
|
public RecentItemVm(FileInfo file)
|
|
{
|
|
Token = file.Id;
|
|
Name = file.Name;
|
|
Path = file.Path;
|
|
}
|
|
}
|
|
}
|