Beispiel #1
0
        /// <summary> Moves the current FormIndex to the next/previous relevant position.
        ///
        /// </summary>
        /// <param name="forward">
        /// </param>
        /// <returns>
        /// </returns>
        private int stepEvent(bool forward)
        {
            FormIndex index = model.FormIndex;

            do
            {
                if (forward)
                {
                    index = model.incrementIndex(index);
                }
                else
                {
                    index = model.decrementIndex(index);
                }
            }while (index.InForm && !model.isIndexRelevant(index));

            return(jumpToIndex(index));
        }
Beispiel #2
0
        /**
         * Moves the current FormIndex to the next/previous relevant position.
         *
         * @param forward
         * @return
         */
        private int stepEvent(Boolean forward)
        {
            FormIndex index = model.getFormIndex();

            do
            {
                if (forward)
                {
                    index = model.incrementIndex(index);
                }
                else
                {
                    index = model.decrementIndex(index);
                }
            } while (index.isInForm() && !model.isIndexRelevant(index));

            return(jumpToIndex(index));
        }