Build hierarchy instead of using Automapper

Add entities before removing them
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-01 12:48:36 +02:00
parent 90c592d7ee
commit 57be6bb917
22 changed files with 84 additions and 77 deletions

View File

@@ -23,7 +23,7 @@ namespace ModernKeePass.ViewModels
{
private readonly IMediator _mediator;
private readonly DatabaseVm _database;
private GroupVm _selectedItem;
private GroupDetailVm _selectedItem;
public bool HasRecycleBin
{
@@ -104,7 +104,7 @@ namespace ModernKeePass.ViewModels
_selectedItem.IsSelected = false;
}
SetProperty(ref _selectedItem, (GroupVm)value);
SetProperty(ref _selectedItem, (GroupDetailVm)value);
if (_selectedItem != null)
{