示例#1
0
        /// <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
 /// <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());
     }
 }