Пример #1
0
        /// <summary>
        /// Checks if an update is available
        /// </summary>
        ///
        /// <returns>true if update available</returns>
        private bool CheckForUpdates()
        {
            if (!updater.Fetch())
            {
                UpdateProgressBar("Fetch failed, retrying…");
                if (!updater.Fetch())
                {
                    return(false);
                }
            }
            if (!updater.Parse())
            {
                UpdateProgressBar(updater.LastError());
                return(false);
            }

            return(updater.Check(applicationPath));
        }