Corrected Entry password not synchronized bug

Created a new welcome page to be shown on first launch
Added descriptive text in main menu pages
This commit is contained in:
2017-10-13 11:48:58 +02:00
committed by BONNEVILLE Geoffroy
parent 9f94dd55c2
commit 5638b59fda
11 changed files with 97 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
using Windows.UI.Text;
using System.ComponentModel;
using Windows.UI.Xaml.Controls;
using ModernKeePass.Common;
using ModernKeePass.Mappings;
@@ -7,7 +7,7 @@ using ModernKeePassLib.Security;
namespace ModernKeePass.ViewModels
{
public class EntryVm: NotifyPropertyChangedBase
public class EntryVm : INotifyPropertyChanged
{
public GroupVm ParentGroup { get; }
public PwEntry Entry { get; }
@@ -36,7 +36,11 @@ namespace ModernKeePass.ViewModels
public string Password
{
get { return GetEntryValue(PwDefs.PasswordField); }
set { SetEntryValue(PwDefs.PasswordField, value); }
set
{
SetEntryValue(PwDefs.PasswordField, value);
NotifyPropertyChanged("Password");
}
}
public string Url
{
@@ -62,17 +66,31 @@ namespace ModernKeePass.ViewModels
public bool IsEditMode
{
get { return _isEditMode; }
set { SetProperty(ref _isEditMode, value); }
set
{
_isEditMode = value;
NotifyPropertyChanged("IsEditMode");
}
}
public bool IsRevealPassword
{
get { return _isRevealPassword; }
set { SetProperty(ref _isRevealPassword, value); }
set
{
_isRevealPassword = value;
NotifyPropertyChanged("IsRevealPassword");
}
}
public event PropertyChangedEventHandler PropertyChanged;
private bool _isEditMode;
private bool _isRevealPassword;
private void NotifyPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public EntryVm() { }
public EntryVm(PwEntry entry, GroupVm parent)