//Registers or reactivates the current recognizer with the subscriber system
        public void startListening()
        {
            if (this.identifier == 0)
            {
                MotionSubscriber subscriber = new MotionSubscriber();
                subscriber.identifier = longRandom();
                subscriber.active     = true;
                subscriber.recognizer = this;
                this.identifier       = subscriber.identifier;

                MotionSubscriberCenter.Instance.AddSubscriber(subscriber);
            }
            else
            {
                MotionSubscriberCenter.Instance.ActivateSubScriber(identifier);
            }

            MotionSubscriberCenter.Instance.StartListening();
        }
 public void AddSubscriber(MotionSubscriber subscriberToAdd)
 {
     //If it did not find the subscriber in the list, add it!
     subscriberToAdd.active = true;
     Subscribers.Add(subscriberToAdd);
 }
 public void AddSubscriber(MotionSubscriber subscriberToAdd)
 {
     //If it did not find the subscriber in the list, add it!
     subscriberToAdd.active = true;
     Subscribers.Add(subscriberToAdd);
 }