NetworkVis.UniversePadPoint.bTestNode C# (CSharp) Method

bTestNode() private method

private bTestNode ( System Rubberpoint, UIElement childVisual ) : bool
Rubberpoint System
childVisual UIElement
return bool
        private bool bTestNode(System.Windows.Point Rubberpoint, UIElement childVisual)
        {
            bool result = false;

            if ((Canvas.GetTop(childVisual)-12 <= Rubberpoint.Y) && (Canvas.GetTop(childVisual)+12 >= Rubberpoint.Y))
            {
                if ((Canvas.GetLeft(childVisual)-12 <= Rubberpoint.X) && (Canvas.GetLeft(childVisual) + 12 >= Rubberpoint.X))
                {
                    result = true;
                    
                }
            }
            return(result);
        }