示例#1
0
 /// <summary>
 /// Estimations to string.
 /// </summary>
 /// <param name="estimation">The estimation.</param>
 /// <returns></returns>
 public static string EstimationToString(decimal estimation)
 {
     return(estimation >= 0 ? estimation.ToString() : ResourceStrings.GetGlobalResource(GlobalResources.SharedResources, "Empty", "Empty").ToLower());
 }
示例#2
0
        /// <summary>
        /// Gets the boolean as string.
        /// </summary>
        /// <param name="value">if set to <c>true</c> [value].</param>
        /// <returns></returns>
        public static string GetBooleanAsString(bool value)
        {
            var boolString = (value) ? Boolean.TrueString : Boolean.FalseString;

            return(ResourceStrings.GetGlobalResource(GlobalResources.SharedResources, boolString));
        }