Exemple #1
0
        void DrawHand(ColorImagePoint cp)
        {
            double newLeft = cp.X - LeftHand.Width / 2;
            double newTop  = cp.Y - LeftHand.Height / 2;

            Canvas.SetLeft(LeftHand, newLeft);
            Canvas.SetTop(LeftHand, newTop);
            if (newLeft < 100 && newTop < 100)
            {
                AcceptButton.Hovering();
            }
            else
            {
                AcceptButton.IsChecked = false;
                AcceptButton.Release();
            }
        }