Move finally works

Sort entries and groups refresh page info
Stopped using breadcrumb user control - for now
Some refactoring
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-28 18:54:37 +02:00
parent f158e5aced
commit b8e1bbd9d7
13 changed files with 104 additions and 59 deletions

View File

@@ -0,0 +1,19 @@
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Views;
using ModernKeePass.Common;
using ModernKeePass.Models;
namespace ModernKeePass.ViewModels
{
public class BreadcrumbVm
{
public RelayCommand<string> NavigateCommand { get; }
public BreadcrumbVm(INavigationService navigation)
{
NavigateCommand = new RelayCommand<string>(groupId =>
navigation.NavigateTo(Constants.Navigation.GroupPage, new NavigationItem {Id = groupId}),
groupId => !string.IsNullOrEmpty(groupId));
}
}
}

View File

@@ -9,7 +9,6 @@ namespace ModernKeePass.ViewModels
public class TopMenuVm
{
public IEnumerable<GroupVm> Groups { get; set; }
public string SelectedDestinationGroup { get; set; }
public TopMenuVm(IMediator mediator)
{