GetApplicationVersion() public static method

Gets the application's version number.
public static GetApplicationVersion ( ) : string
return string
Exemplo n.º 1
0
        public static bool UpdateAvailable(UpdateInfo info)
        {
            if (info == null || !info.Successful)
            {
                return(false);
            }

            var serverVersion  = info.LatestVersion;
            var currentVersion = VariousFunctions.GetApplicationVersion();

            return(serverVersion.CompareTo(currentVersion) > 0);
        }