예제 #1
0
파일: PtnInfo.cs 프로젝트: w8w8w8/Photo.Net
        /// <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);
        }
예제 #2
0
파일: PtnInfo.cs 프로젝트: w8w8w8/Photo.Net
 /// <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());
     }
 }
예제 #3
0
파일: PtnInfo.cs 프로젝트: w8w8w8/Photo.Net
        /// <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);
        }