private SlotView GetOrCreateSlotView(Port port) { SlotView slot = null; if (!slotTable.TryGetValue(port.name, out slot)) { slot = new SlotView(); slots.Add(slot); slotTable[port.name] = slot; } return(slot); }
private void CreatePortViews(Port port) { SlotView slot = GetOrCreateSlotView(port); portTable[port.id] = slot.RegisterPortView(port, typeof(GraphPortNode).IsAssignableFrom(this.node.GetType())); }