mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
38 lines
874 B
C#
38 lines
874 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace AIStudio.Wpf.DiagramDesigner
|
|
{
|
|
[Serializable]
|
|
[XmlInclude(typeof(BlockDesignerItem))]
|
|
public class BlockDesignerItem : DesignerItemBase
|
|
{
|
|
public BlockDesignerItem()
|
|
{
|
|
}
|
|
|
|
public BlockDesignerItem(BlockDesignerItemViewModel viewmodel) : base(viewmodel)
|
|
{
|
|
Containers = new List<BlockItemsContainerInfoItem>(viewmodel.Containers.Select(p => new BlockItemsContainerInfoItem(p)));
|
|
Flag = viewmodel.Flag;
|
|
}
|
|
|
|
|
|
[XmlArray]
|
|
public List<BlockItemsContainerInfoItem> Containers
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[XmlAttribute]
|
|
public string Flag
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|