Ejemplo n.º 1
0
        //gets the next position in the textbox to move
        private int GetNextCharacterPosition(int startPosition)
        {
            int position = MaskProvider.FindEditPositionFrom(startPosition, true);

            if (position == -1)
            {
                return(startPosition);
            }

            return(position);
        }
Ejemplo n.º 2
0
        //gets the next position in the textbox to move
        private int GetPreivousCharacterPosition(int startPosition)
        {
            int position = -1;

            for (int i = startPosition - 1; i >= 0; i--)
            {
                position = MaskProvider.FindEditPositionFrom(i, true);
                if (position < startPosition && position != -1)
                {
                    return(position);
                }
            }
            return(startPosition);
        }