コード例 #1
0
 public LinkModel(PortModel sourcePort, PortModel?targetPort = null) : base(sourcePort, targetPort)
 {
 }
コード例 #2
0
 public LinkModel(string id, PortModel sourcePort, PortModel?targetPort = null) : base(id, sourcePort, targetPort)
 {
 }
コード例 #3
0
 public LinkModel(PortModel sourcePort, PortModel?targetPort = null)
 {
     SourcePort = sourcePort;
     TargetPort = targetPort;
 }
コード例 #4
0
 public LinkModel(string id, PortModel sourcePort, PortModel?targetPort = null) : base(id)
 {
     SourcePort = sourcePort;
     TargetPort = targetPort;
 }
コード例 #5
0
 public virtual bool CanAttachTo(PortModel port) => port != this && !port.Locked && Parent != port.Parent;