Example #1
0
        /// <summary>
        /// Returns a string representation of the FormatInfoTypes.
        /// </summary>
        /// <param name="fi"></param>
        /// <returns></returns>
        internal static string GetFormatByFormatInfo(FormatInfoTypes fi)
        {
            switch (fi)
            {
                case FormatInfoTypes.DateShortTime:
                    return "g";

                case FormatInfoTypes.FullDateTime:
                    return "G";

                case FormatInfoTypes.ShortDate:
                default:
                    return "d";
            }
        }
Example #2
0
        /// <summary>
        /// Returns a string representation of the FormatInfoTypes.
        /// </summary>
        /// <param name="fi"></param>
        /// <returns></returns>
        protected internal string GetFormatByFormatInfo(FormatInfoTypes fi)
        {
            switch (fi)
            {
            case FormatInfoTypes.DateShortTime:
                return("g");

            case FormatInfoTypes.FullDateTime:
                return("G");

            case FormatInfoTypes.ShortDate:
            default:
                return("d");
            }
        }
Example #3
0
 public void ResetFormatInfo()
 {
     FormatInfo = FormatInfoTypes.ShortDate;
 }