Exemplo n.º 1
0
        /// <summary>
        /// Supplies a bates number that appears before the given value.
        /// </summary>
        /// <param name="batesNumber">The initial bates value.</param>
        /// <returns>A bates number that has been decreased from the given value.</returns>
        public static String PreviousNumber(String batesNumber)
        {
            BatesNumber bates = new BatesNumber(batesNumber);

            bates.DecreaseNumber();
            return(bates.ToString());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Supplies a bates number that appears after the given value.
        /// </summary>
        /// <param name="batesNumber">The initial bates value.</param>
        /// <returns>A bates number that has been increased from the given value.</returns>
        public static String NextNumber(String batesNumber)
        {
            BatesNumber bates = new BatesNumber(batesNumber);

            bates.IterateNumber();
            return(bates.ToString());
        }