Добавьте файлы проекта.
This commit is contained in:
29
Lattice.Core/Models/ContentNode.cs
Normal file
29
Lattice.Core/Models/ContentNode.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Lattice.Core.Abstractions;
|
||||
|
||||
namespace Lattice.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Узел, представляющий конечный контент (вкладку, панель инструментов или документ).
|
||||
/// </summary>
|
||||
public class ContentNode : LayoutNode
|
||||
{
|
||||
/// <summary>
|
||||
/// Ссылка на визуальный или логический компонент, закрепленный в этом узле.
|
||||
/// </summary>
|
||||
public IDockableComponent? Component { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Указывает, является ли данный узел частью основной рабочей области документов.
|
||||
/// </summary>
|
||||
public bool IsDocumentArea { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Инициализирует новый экземпляр <see cref="ContentNode"/> на основе компонента.
|
||||
/// </summary>
|
||||
/// <param name="component">Компонент содержимого.</param>
|
||||
public ContentNode(IDockableComponent component)
|
||||
{
|
||||
Component = component;
|
||||
Name = component.DisplayName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user