private void DrawCreatingConnection(Event e) { if (CurrentState == State.CreateConnection) { Handles.DrawLine(connectionStartNode.GetRect(zoom, panOffset).center, e.mousePosition); } }