using System.Collections.Generic; using System.Linq; namespace LanMontainDesktop.Models; public sealed class StartMenuFolderNode { public StartMenuFolderNode(string name, string relativePath) { Name = name; RelativePath = relativePath; } public string Name { get; } public string RelativePath { get; } public List Folders { get; } = []; public List Apps { get; } = []; public int TotalAppCount => Apps.Count + Folders.Sum(folder => folder.TotalAppCount); }