Обновление формы просмотра

This commit is contained in:
2025-05-05 23:46:58 +04:00
parent fc5d68ca1f
commit c1b70a12eb
9 changed files with 67 additions and 549 deletions
@@ -174,11 +174,6 @@ internal abstract class StructureField(StructureBuilder builder, string name, in
public abstract string GetValueString();
public virtual ICollection<EntityTreeViewerRow> GetTextRows(EntityTreeViewerControl control)
{
return [new(control, this)];
}
public virtual ICollection<T> GetRows<T>(Func<StructureField, T> func)
{
StructureField[] q = [this];
@@ -351,15 +346,6 @@ internal class StructureFieldComplex : StructureField
}
}
public override ICollection<EntityTreeViewerRow> GetTextRows(EntityTreeViewerControl control)
{
List<EntityTreeViewerRow> rows = base.GetTextRows(control).ToList();
rows.AddRange(Fields.SelectMany(f => f.GetTextRows(control)).ToList());
return rows;
}
public override ICollection<T> GetRows<T>(Func<StructureField, T> func)
{
return [.. base.GetRows(func), .. Fields.SelectMany(f => f.GetRows(func)).ToList()];