mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Build hierarchy instead of using Automapper
Add entities before removing them
This commit is contained in:
@@ -25,7 +25,7 @@ namespace ModernKeePass.Views
|
||||
/// process lifetime management
|
||||
/// </summary>
|
||||
public NavigationHelper NavigationHelper { get; }
|
||||
public GroupVm Model => (GroupVm)DataContext;
|
||||
public GroupDetailVm Model => (GroupDetailVm)DataContext;
|
||||
|
||||
public GroupDetailPage()
|
||||
{
|
||||
@@ -50,12 +50,12 @@ namespace ModernKeePass.Views
|
||||
|
||||
var args = e.Parameter as PasswordEventArgs;
|
||||
if (args != null)
|
||||
DataContext = new GroupVm(args.RootGroup);
|
||||
DataContext = new GroupDetailVm(args.RootGroup);
|
||||
else
|
||||
{
|
||||
var vm = e.Parameter as Application.Group.Models.GroupVm;
|
||||
if (vm != null)
|
||||
DataContext = new GroupVm(vm);
|
||||
DataContext = new GroupDetailVm(vm);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user