/// <summary> /// Lookup the fromPinId from the Node's List of Pins /// and add the route to the specified pin /// </summary> /// <param name="fromPinId"></param> /// <param name="toPinId"></param> public virtual void AddRoute(int fromPinId, int toPinId) { Pins.Single(pin => pin.PinId == fromPinId).ToPinId = toPinId; }