то же самое

This commit is contained in:
lapich committed 2026-10-11 19:16:11 +03:00
1 parent 090cdc9933
commit ac99977be3
534 files changed
+36990 -48

No files matched your search

@@ -0,0 +1,34 @@
//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024-2026 TinyGoose Ltd., All Rights Reserved.
//
using System;
using System.Collections.Generic;
namespace TinyGoose.Tremble.Editor
{
public record ManualEntry
{
public string Title { get; init; }
public string PagePath { get; init; }
public bool ShowInTree { get; init; } = true;
public List<ManualEntry> Children { get; } = new();
public ManualEntry FindEntryByPath_Recursive(string path)
{
if (PagePath != null && PagePath.EqualsInvariant(path))
return this;
foreach (ManualEntry child in Children)
{
ManualEntry result = child.FindEntryByPath_Recursive(path);
if (result != null)
return result;
}
return null;
}
}
}