示例#1
0
        /// <summary>
        /// Version check has been done, show results.
        /// </summary>
        private void ProcessVersionCheckResult(VersionCheckResult result)
        {
            if ((result == null) || (!result.Succeeded))
            {
                return;
            }

            var currentVersion = GetType().Assembly.GetName().Version;

            if (result.LatestVersion > currentVersion)
            {
                lbVersion.Text += " NEW VERSION AVAILABLE";
            }
        }
示例#2
0
        /// <summary>
        /// Version check has been done, show results.
        /// </summary>
        private void ProcessVersionCheckResult(VersionCheckResult result)
        {
            if ((result == null) || (!result.Succeeded))
                return;

            var currentVersion = GetType().Assembly.GetName().Version;
            if (result.LatestVersion > currentVersion)
            {
                lbVersion.Text += " NEW VERSION AVAILABLE";
            }
        }