Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Models/Serializables/Connector/FullyCreatedConnectorInfoItem.cs

50 lines
1.1 KiB
C#
Raw Normal View History

2022-10-28 22:45:39 +08:00
using AIStudio.Wpf.DiagramDesigner;
2021-07-23 09:42:22 +08:00
using System;
using System.Collections.Generic;
2023-01-24 23:10:57 +08:00
using System.IO;
2021-07-23 09:42:22 +08:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-01-24 23:10:57 +08:00
using System.Xml;
2023-01-24 16:20:39 +08:00
using System.Xml.Serialization;
2021-07-23 09:42:22 +08:00
2022-10-28 22:45:39 +08:00
namespace AIStudio.Wpf.DiagramDesigner
2021-07-23 09:42:22 +08:00
{
2023-01-24 16:20:39 +08:00
/// <summary>
2023-01-24 17:53:04 +08:00
/// 完整连接点
2023-01-24 16:20:39 +08:00
/// </summary>
[Serializable]
2023-01-24 17:53:04 +08:00
[XmlInclude(typeof(FullyCreatedConnectorInfoItem))]
public class FullyCreatedConnectorInfoItem : ConnectorInfoItemBase
2021-07-23 09:42:22 +08:00
{
2023-01-24 17:53:04 +08:00
public FullyCreatedConnectorInfoItem()
2023-01-24 16:20:39 +08:00
{
}
2023-01-24 17:53:04 +08:00
public FullyCreatedConnectorInfoItem(FullyCreatedConnectorInfo viewmodel) : base(viewmodel)
2023-01-24 16:20:39 +08:00
{
XRatio = viewmodel.XRatio;
YRatio = viewmodel.YRatio;
IsInnerPoint = viewmodel.IsInnerPoint;
ValueTypePoint = viewmodel.ValueTypePoint;
}
[XmlAttribute]
2021-07-23 09:42:22 +08:00
public double XRatio { get; set; }
2023-01-24 16:20:39 +08:00
[XmlAttribute]
2021-07-23 09:42:22 +08:00
public double YRatio { get; set; }
2023-01-24 16:20:39 +08:00
[XmlAttribute]
2021-07-23 09:42:22 +08:00
public bool IsInnerPoint { get; set; }
2023-01-24 16:20:39 +08:00
[XmlAttribute]
2021-07-23 09:42:22 +08:00
public ValueTypePoint ValueTypePoint { get; set; }
2023-01-24 23:10:57 +08:00
2021-07-23 09:42:22 +08:00
}
}