Exemplo n.º 1
0
        /// <summary>
        /// Intializes a new instances of <see cref="DownloadUpdate"/> class
        /// </summary>
        /// <param name="eazyUpdate">The eazy update manager object</param>
        public DownloadUpdate(EazyUpdateManager eazyUpdate)
        {
            this.SetLanguageDictionary();

            InitializeComponent();

            this._eazyUpdate = eazyUpdate;

            if (this._eazyUpdate.UpdaterInformation.IsMandatoryUpdate &&
                this._eazyUpdate.UpdaterInformation.UpdateMode == EazyUpdateMode.ForcedDownload)
            {
                this.WindowStyle = WindowStyle.None;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instances of <see cref="UpdateInformation"/> class
        /// </summary>
        /// <param name="eazyUpdate">The easy update manager</param>
        public UpdateInformation(EazyUpdateManager eazyUpdate)
        {
            this.SetLanguageDictionary();

            InitializeComponent();

            this._eazyUpdate = eazyUpdate;

            this.SetControlText();

            this.UseLatestIE();

            if (!string.IsNullOrEmpty(this._eazyUpdate.UpdaterInformation.ChangelogURL))
            {
                webBrowser.Navigate(this._eazyUpdate.UpdaterInformation.ChangelogURL);
            }

            if (this._eazyUpdate.UpdaterInformation.IsMandatoryUpdate &&
                this._eazyUpdate.UpdaterInformation.UpdateMode == EazyUpdateMode.ForcedDownload)
            {
                this.WindowStyle = WindowStyle.None;
            }
        }