Files
modernkeepass/WinAppCommon/ViewModels/OpenVm.cs
Geoffroy BONNEVILLE 8de493f987 Username is now correctly persisted
Set credentials validation works as intended
Getting settings has default values
Add parent group in Move searchbox
Moving entries work as intended
Removed unreferenced code files
2020-04-30 19:40:48 +02:00

35 lines
798 B
C#

using GalaSoft.MvvmLight;
namespace ModernKeePass.ViewModels
{
public class OpenVm: ViewModelBase
{
private string _name;
private string _path;
private string _token;
public bool IsFileSelected => !string.IsNullOrEmpty(Token);
public string Token
{
get { return _token; }
set
{
Set(() => Token, ref _token, value);
RaisePropertyChanged(nameof(IsFileSelected));
}
}
public string Name
{
get { return _name; }
set { Set(() => Name, ref _name, value); }
}
public string Path
{
get { return _path; }
set { Set(() => Path, ref _path, value); }
}
}
}