예제 #1
0
        public void SendUpdateTest()
        {
            D2DViewControl target          = CreateD2DViewControl(); // TODO: Initialize to an appropriate value
            ReactiveUpdate pReactiveUpdate = null;                   // TODO: Initialize to an appropriate value

            target.SendUpdate(pReactiveUpdate);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
예제 #2
0
        public void RouteTouchEvents(Touch pTouchEvent)
        {
            D2DViewControl currentlySelected = null;

            //for (int i = _overlayViewControls.Count - 1;
            //    i >= 0;
            //    i--)
            //{
            currentlySelected = _overlayViewControls.GetViewControlContainingPoint(pTouchEvent.Location);
            if (currentlySelected != null &&
                currentlySelected != _overlayViewControls)
            {
                currentlySelected.SendUpdate(pTouchEvent);
                return;
            }
            //}

            currentlySelected = _currentView.GetViewControlContainingPoint(pTouchEvent.Location);
            if (currentlySelected != null)
            {
                currentlySelected.SendUpdate(pTouchEvent);
            }
        }