1
0
mirror of synced 2024-12-18 17:35:55 +01:00
TaikoLocalServer/TaikoWebUI/Services/BreadcrumbsStateContainer.cs

18 lines
419 B
C#
Raw Normal View History

2024-08-13 17:07:39 +02:00
namespace TaikoWebUI.Services
{
public class BreadcrumbsStateContainer
{
public List<BreadcrumbItem> breadcrumbs = new();
public event Action? OnChange;
public void SetBreadcrumbs(List<BreadcrumbItem> _breadcrumbs)
{
breadcrumbs = _breadcrumbs;
NotifyStateChanged();
}
public void NotifyStateChanged() => OnChange?.Invoke();
}
}