private SlotInfo(NodeInfo nodeInfo, Slot slot) { Slot = slot; SlotAnchorBinder.PropertyChanged += SlotAnchorBinder_PropertyChanged; NodeInfo = nodeInfo; }
public static SlotInfo From(NodeInfo nodeInfo, Slot slot) { SlotInfo slotInfo; if (!slotInfos.TryGetValue(slot, out slotInfo)) slotInfos.Add(slot, slotInfo = new SlotInfo(nodeInfo, slot)); return slotInfo; }
public static LinkInfo From(NodeInfo nodeInfo, Slot slot, Node node) { Tuple<Slot, Node> tuple = new Tuple<Slot, Node>(slot, node); LinkInfo linkInfo; if (!linkInfos.TryGetValue(tuple, out linkInfo)) linkInfos.Add(tuple, linkInfo = new LinkInfo(nodeInfo, slot, node)); return linkInfo; }
private LinkInfo(NodeInfo nodeInfo, Slot slot, Node node) { Slot = slot; SlotInfo = SlotInfo.From(nodeInfo, slot); SlotInfo.PropertyChanged += SlotInfo_PropertyChanged; Node = node; NodeInfo = NodeInfo.From(nodeInfo.FlowInfo, node); NodeInfo.PropertyChanged += NodeInfo_PropertyChanged; }