Esempio n. 1
0
        /* Downloads latest release.
         * Throws UpdaterException if error occurs.
         */
        public static void Download(AsyncCompletedEventHandler completedHandler = null, DownloadProgressChangedEventHandler progressHandler = null)
        {
            if (Latest != null)
            {
                if (Latest.IsDownloaded || Latest.IsDownloading)
                {
                    throw new UpdaterException(L10n.Message("Download completed or still in progress"));
                }

                Latest.Download(completedHandler, progressHandler);
            }
        }