2023-07-15 10:20:50 +08:00
|
|
|
|
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)));
|
2023-08-23 19:30:03 +08:00
|
|
|
|
Flag = viewmodel.Flag;
|
2023-07-15 10:20:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[XmlArray]
|
|
|
|
|
|
public List<BlockItemsContainerInfoItem> Containers
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
2023-08-23 19:30:03 +08:00
|
|
|
|
|
|
|
|
|
|
[XmlAttribute]
|
|
|
|
|
|
public string Flag
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
2023-07-15 10:20:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|