public LinkModel(PortModel sourcePort, PortModel?targetPort = null) : base(sourcePort, targetPort) { }
public LinkModel(string id, PortModel sourcePort, PortModel?targetPort = null) : base(id, sourcePort, targetPort) { }
public LinkModel(PortModel sourcePort, PortModel?targetPort = null) { SourcePort = sourcePort; TargetPort = targetPort; }
public LinkModel(string id, PortModel sourcePort, PortModel?targetPort = null) : base(id) { SourcePort = sourcePort; TargetPort = targetPort; }
public virtual bool CanAttachTo(PortModel port) => port != this && !port.Locked && Parent != port.Parent;