/// <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()); }
/// <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)); }