/// <summary> /// Creates a new gesture object, adds it to the list of gestures for the viewmodel and a create a new evenhandler for this gesture. /// </summary> /// <param name="type">The type of gesture. Defined in the class EnumTypes.</param> /// <param name="gestureSegments">All the segments defining the gesture.</param> public void AddGesture(GestureType type, IGestureSeg[] gestureSegments) { Gesture gesture = new Gesture(type, gestureSegments); gesture.GestureRecognised += new EventHandler<GestureEvent>(GestureRecognisedHandler); _gestures.Add(gesture); }
/// <summary> /// Constructor defining a gestures. /// </summary> /// <param name="type">The type of gesture. Defined in the class EnumTypes.</param> /// <param name="gestureSegments">All the segments defining the gesture.</param> public Gesture(GestureType type, IGestureSeg[] gestureSegments) { _gestureSegments = gestureSegments; _type = type; }