mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Finally a nicer looking and working TextBoxWithButton (inspired from the SearchButton)
SearchBox field style improved
This commit is contained in:
20
WinAppCommon/ViewModels/UserControls/TopMenuVm.cs
Normal file
20
WinAppCommon/ViewModels/UserControls/TopMenuVm.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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 string SelectedDestinationGroup { get; set; }
|
||||
|
||||
public TopMenuVm(IMediator mediator)
|
||||
{
|
||||
var database = mediator.Send(new GetDatabaseQuery()).GetAwaiter().GetResult();
|
||||
Groups = mediator.Send(new GetAllGroupsQuery { GroupId = database.RootGroupId }).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user