2017-10-03 16:06:49 +02:00
|
|
|
|
using Windows.UI.Xaml;
|
|
|
|
|
using ModernKeePass.Common;
|
2017-09-27 18:01:21 +02:00
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
|
|
|
{
|
2017-10-03 16:06:49 +02:00
|
|
|
|
public class DatabaseVm : NotifyPropertyChangedBase
|
2017-09-27 18:01:21 +02:00
|
|
|
|
{
|
|
|
|
|
private string _name;
|
2017-10-03 16:06:49 +02:00
|
|
|
|
private Visibility _selectedVisibility = Visibility.Collapsed;
|
|
|
|
|
private bool _isOpen;
|
2017-09-27 18:01:21 +02:00
|
|
|
|
|
2017-10-03 16:06:49 +02:00
|
|
|
|
public Visibility SelectedVisibility
|
|
|
|
|
{
|
|
|
|
|
get { return _selectedVisibility; }
|
|
|
|
|
set { SetProperty(ref _selectedVisibility, value); }
|
2017-09-27 18:01:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-03 16:06:49 +02:00
|
|
|
|
public bool IsOpen
|
2017-09-27 18:01:21 +02:00
|
|
|
|
{
|
2017-10-03 16:06:49 +02:00
|
|
|
|
get { return _isOpen; }
|
|
|
|
|
set { SetProperty(ref _isOpen, value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name {
|
|
|
|
|
get { return string.IsNullOrEmpty(_name) ? string.Empty : $"Database {_name} selected"; }
|
|
|
|
|
set { SetProperty(ref _name, value); }
|
2017-09-27 18:01:21 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|