Example #1
0
    public override void OnPrimaryButtonDown(ToolContext context)
    {
        Pin pin = Desk.GetPinUnderCursor();

        if (pin != null)
        {
            Wire wire = Wire.CreateWire(pin, initialPin);
            if (wire)
            {
                context.manager.EnableTool(0);
            }
        }
    }