/// <summary> /// Returns the application name, with the version string. i.e., "Paint.NET v2.5 (Beta 2 Debug build 1.0.*.*)" /// </summary> /// <returns></returns> public static string GetFullAppName() { string fullAppNameFormat = PdnResources.GetString("PdnInfo.FullAppName.Format"); string fullAppName = string.Format(fullAppNameFormat, PtnInfo.GetProductName(false), GetVersionString()); return(fullAppName); }
/// <summary> /// For final builds, this returns PdnInfo.GetProductName() (i.e., "Paint.NET v2.2") /// For non-final builds, this returns GetFullAppName() /// </summary> /// <returns></returns> public static string GetAppName() { if (PtnInfo.IsFinalBuild && !PtnInfo.IsDebugBuild) { return(PtnInfo.GetProductName(false)); } else { return(GetFullAppName()); } }
/// <summary> /// Returns a version string that is presentable without the Paint.NET name. example: "version 2.5 Beta 5" /// </summary> /// <returns></returns> public static string GetFriendlyVersionString() { Version version = PtnInfo.GetVersion(); string versionFormat = PdnResources.GetString("PdnInfo.FriendlyVersionString.Format"); string configFormat = PdnResources.GetString("PdnInfo.FriendlyVersionString.ConfigWithSpace.Format"); string config = string.Format(configFormat, GetConfigurationString()); string configText; if (PtnInfo.IsFinalBuild) { configText = string.Empty; } else { configText = config; } string versionText = string.Format(versionFormat, GetVersionNumberString(version, 2), configText); return(versionText); }