Ejemplo n.º 1
0
        public void AddGesture(GestureDefinition gestureDef)
        {
            bool bContains = false;

            foreach (Gesture gesture in activeGestures)
            {
                if (gesture.GetGestureType() == gestureDef.GetGestureType())
                {
                    bContains = true;
                }
            }

            if (!bContains)
            {
                Gesture gesture = new Gesture(gestureDef);
                gesture.GestureRecognized += OnGestureRecognized;
                activeGestures.Add(gesture);
            }
        }
Ejemplo n.º 2
0
 public Gesture(GestureDefinition gestureDeffinition)
 {
     this.gestureDeffinition = gestureDeffinition;
 }