Dialog shown when an update is available
Наследование: System.Windows.Forms.Form
Пример #1
0
        /// <summary>
        /// Creates an update dialog to prompt the user
        /// </summary>
        /// <param name="fileUrl">The URL of the new version to download</param>
        /// <param name="contracts">The response received from the SDownload regarding the new version</param>
        public static void Prompt(String fileUrl, List <GithubReleaseItemContract> contracts)
        {
            if (_form == null || _form.IsDisposed)
            {
                _form = new UpdateAvailableDialog(fileUrl, contracts);
            }

            _form.Show();
        }
Пример #2
0
        /// <summary>
        /// Creates an update dialog to prompt the user
        /// </summary>
        /// <param name="fileUrl">The URL of the new version to download</param>
        /// <param name="contracts">The response received from the SDownload regarding the new version</param>
        public static void Prompt(String fileUrl, List<GithubReleaseItemContract> contracts)
        {
            if (_form == null || _form.IsDisposed)
                _form = new UpdateAvailableDialog(fileUrl, contracts);

            _form.Show();
        }