mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Additional fields Add, Update and Delete work (too well)
SelectableListView works when programmatically setting selection
This commit is contained in:
@@ -242,9 +242,18 @@ namespace ModernKeePass.Infrastructure.KeePass
|
||||
case EntryFieldName.ForegroundColor:
|
||||
pwEntry.ForegroundColor = (Color)fieldValue;
|
||||
break;
|
||||
default:
|
||||
pwEntry.Strings.Set(fieldName, new ProtectedString(true, fieldValue.ToString()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void DeleteField(string entryId, string fieldName)
|
||||
{
|
||||
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
|
||||
pwEntry.Strings.Remove(fieldName);
|
||||
}
|
||||
|
||||
public EntryEntity AddHistory(string entryId)
|
||||
{
|
||||
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
|
||||
@@ -306,7 +315,7 @@ namespace ModernKeePass.Infrastructure.KeePass
|
||||
var pwGroup = _pwDatabase.RootGroup.FindGroup(BuildIdFromString(groupId), true);
|
||||
pwGroup.SortSubGroups(false);
|
||||
}
|
||||
|
||||
|
||||
public void AddAttachment(string entryId, string attachmentName, byte[] attachmentContent)
|
||||
{
|
||||
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
|
||||
|
Reference in New Issue
Block a user