Пример #1
0
 public string GetApplicationTitle(VersionDepth depth, SoftwareCycle cycle, bool showFinal)
 {
     if (!string.IsNullOrEmpty(AppName) && !string.IsNullOrEmpty(mLocalVersion))
     {
         if (cycle == SoftwareCycle.Final && showFinal || cycle != SoftwareCycle.Final)
         {
             return(GetApplicationTitle(AppName, mLocalVersion, depth, cycle));
         }
         return(GetApplicationTitle(AppName, mLocalVersion, depth));
     }
     throw new Exception("Product Name or Product Version is Empty.");
 }
Пример #2
0
        public string GetVersion(string ProductVersion, VersionDepth Depth)
        {
            string title = "";
            int    i;
            int    d = Convert.ToInt32(Depth);

            String[] version = ProductVersion.Split('.');

            if (d > version.Length)
            {
                d = version.Length;
            }

            for (i = 0; i < d - 1; i++)
            {
                title += version[i] + ".";
            }
            title += version[i];

            return(title);
        }
Пример #3
0
 public String GetApplicationTitle(string ProductName, string ProductVersion, VersionDepth Depth)
 {
     return(ProductName + " " + GetVersion(ProductVersion, Depth));
 }
Пример #4
0
 public String GetApplicationTitle(string productName, string ProductVersion, VersionDepth Depth, SoftwareCycle state)
 {
     return(GetApplicationTitle(productName, ProductVersion, Depth) + " " + state);
 }
Пример #5
0
 public string GetApplicationTitle(VersionDepth depth, bool showFinal)
 {
     return(GetApplicationTitle(depth, mSoftwareState, showFinal));
 }
Пример #6
0
        public string GetVersion(string ProductVersion, VersionDepth Depth)
        {
            string title = "";
            int i;
            int d = System.Convert.ToInt32(Depth);
            String[] version = ProductVersion.Split('.');

            if (d > version.Length)
            {
                d = version.Length;
            }

            for (i = 0; i < d - 1; i++)
            {
                title += version[i] + ".";
            }
            title += version[i];

            return title;
        }
Пример #7
0
 public string GetApplicationTitle(VersionDepth depth)
 {
     return(GetApplicationTitle(depth, mShowFinalState));
 }
Пример #8
0
 public String GetApplicationTitle(string ProductName, string ProductVersion, VersionDepth Depth)
 {
     return ProductName + " " + GetVersion(ProductVersion, Depth);
 }
Пример #9
0
 public string GetVersion(VersionDepth Depth)
 {
     return GetVersion(GetRemoteVersion(), Depth);
 }
Пример #10
0
 public String GetApplicationTitle(string productName, string ProductVersion, VersionDepth Depth, SoftwareCycle state)
 {
     return GetApplicationTitle(productName, ProductVersion, Depth) + " " + state;
 }
Пример #11
0
 public string GetApplicationTitle(VersionDepth depth, SoftwareCycle cycle, bool showFinal)
 {
     if (!string.IsNullOrEmpty(AppName) && !string.IsNullOrEmpty(mLocalVersion))
     {
         if (cycle == SoftwareCycle.Final && showFinal || cycle != SoftwareCycle.Final)
         {
             return GetApplicationTitle(AppName, mLocalVersion, depth, cycle);
         }
         return GetApplicationTitle(AppName, mLocalVersion, depth);
     }
     throw new Exception("Product Name or Product Version is Empty.");
 }
Пример #12
0
 public string GetApplicationTitle(VersionDepth depth, bool showFinal)
 {
     return GetApplicationTitle(depth, mSoftwareState, showFinal);
 }
Пример #13
0
 public string GetApplicationTitle(VersionDepth depth)
 {
     return GetApplicationTitle(depth, mShowFinalState);
 }
Пример #14
0
 public string GetVersion(VersionDepth Depth)
 {
     return(GetVersion(GetRemoteVersion(), Depth));
 }