Implement add and delete entries and groups

New command bar
Some layout changes
Some refactoring
This commit is contained in:
2017-10-02 18:40:54 +02:00
committed by BONNEVILLE Geoffroy
parent 2bcc4fde60
commit 267d9f25c2
13 changed files with 228 additions and 145 deletions

View File

@@ -22,7 +22,7 @@ namespace ModernKeePass.Common
public DatabaseHelper(StorageFile databaseFile)
{
this._databaseFile = databaseFile;
_databaseFile = databaseFile;
}
public string Open(string password)
{
@@ -31,9 +31,8 @@ namespace ModernKeePass.Common
{
key.AddUserKey(new KcpPassword(password));
_pwDatabase.Open(IOConnectionInfo.FromFile(_databaseFile), key, new NullStatusLogger());
//_pwDatabase.Open(IOConnectionInfo.FromPath(databaseFile.Path), key, new NullStatusLogger());
if (IsOpen) RootGroup = new GroupVm(_pwDatabase.RootGroup);
if (IsOpen) RootGroup = new GroupVm(_pwDatabase.RootGroup, null);
}
catch (ArgumentNullException)
{
@@ -47,11 +46,6 @@ namespace ModernKeePass.Common
{
return ex.Message;
}
/*finally
{
// TODO: move this when implementing write mode
_pwDatabase.Close();
}*/
return string.Empty;
}