mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-01 06:36:36 +08:00
block的序列化与反序列化
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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)));
|
||||
}
|
||||
|
||||
|
||||
[XmlArray]
|
||||
public List<BlockItemsContainerInfoItem> Containers
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user