Example #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.");
 }
Example #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);
        }
Example #3
0
 public String GetApplicationTitle(string ProductName, string ProductVersion, VersionDepth Depth)
 {
     return(ProductName + " " + GetVersion(ProductVersion, Depth));
 }
Example #4
0
 public String GetApplicationTitle(string productName, string ProductVersion, VersionDepth Depth, SoftwareCycle state)
 {
     return(GetApplicationTitle(productName, ProductVersion, Depth) + " " + state);
 }
Example #5
0
 public string GetApplicationTitle(VersionDepth depth, bool showFinal)
 {
     return(GetApplicationTitle(depth, mSoftwareState, showFinal));
 }
Example #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;
        }
Example #7
0
 public string GetApplicationTitle(VersionDepth depth)
 {
     return(GetApplicationTitle(depth, mShowFinalState));
 }
Example #8
0
 public String GetApplicationTitle(string ProductName, string ProductVersion, VersionDepth Depth)
 {
     return ProductName + " " + GetVersion(ProductVersion, Depth);
 }
Example #9
0
 public string GetVersion(VersionDepth Depth)
 {
     return GetVersion(GetRemoteVersion(), Depth);
 }
Example #10
0
 public String GetApplicationTitle(string productName, string ProductVersion, VersionDepth Depth, SoftwareCycle state)
 {
     return GetApplicationTitle(productName, ProductVersion, Depth) + " " + state;
 }
Example #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.");
 }
Example #12
0
 public string GetApplicationTitle(VersionDepth depth, bool showFinal)
 {
     return GetApplicationTitle(depth, mSoftwareState, showFinal);
 }
Example #13
0
 public string GetApplicationTitle(VersionDepth depth)
 {
     return GetApplicationTitle(depth, mShowFinalState);
 }
Example #14
0
 public string GetVersion(VersionDepth Depth)
 {
     return(GetVersion(GetRemoteVersion(), Depth));
 }