예제 #1
0
        /// <summary>Returns the upgrade URL for the specified version of Silverlight</summary>
        /// <param name="version">Silveright version</param>
        public static string GetUpgradeUrl(SilverlightVersion version)
        {
            string upgradeUrl = "";

            switch (version)
            {
            case SilverlightVersion.v2: upgradeUrl = "http://go.microsoft.com/fwlink/?LinkID=149156&v=2.0.31005.0"; break;

            case SilverlightVersion.v3: upgradeUrl = "http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0"; break;

            default: upgradeUrl = "http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0"; break;
            }
            return(upgradeUrl);
        }
예제 #2
0
        /// <summary>Returns the minimum version for the specified version of Silverlight</summary>
        /// <param name="version">Silveright version</param>
        public static string GetMinimumVersion(SilverlightVersion version)
        {
            string minimumVersion = "";

            switch (version)
            {
            case SilverlightVersion.v2: minimumVersion = "2.0.31005"; break;

            case SilverlightVersion.v3: minimumVersion = "3.0.40624"; break;

            default: minimumVersion = "3.0.40624"; break;
            }
            return(minimumVersion);
        }