mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00

Sort entries and groups refresh page info Stopped using breadcrumb user control - for now Some refactoring
19 lines
631 B
C#
19 lines
631 B
C#
using System.Collections.Generic;
|
|
using MediatR;
|
|
using ModernKeePass.Application.Database.Queries.GetDatabase;
|
|
using ModernKeePass.Application.Group.Models;
|
|
using ModernKeePass.Application.Group.Queries.GetAllGroups;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class TopMenuVm
|
|
{
|
|
public IEnumerable<GroupVm> Groups { get; set; }
|
|
|
|
public TopMenuVm(IMediator mediator)
|
|
{
|
|
var database = mediator.Send(new GetDatabaseQuery()).GetAwaiter().GetResult();
|
|
Groups = mediator.Send(new GetAllGroupsQuery { GroupId = database.RootGroupId }).GetAwaiter().GetResult();
|
|
}
|
|
}
|
|
} |