Beispiel #1
0
        public UpdateForm()
        {
            InitializeComponent();
            AutoUpdater.UseSystemFont(this);
            UseLatestIE();
            buttonSkip.Visible        = AutoUpdater.ShowSkipButton;
            buttonRemindLater.Visible = AutoUpdater.ShowRemindLaterButton;
            var resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdateForm));

            Text = string.Format(resources.GetString("$this.Text", CultureInfo.CurrentCulture),
                                 AutoUpdater.AppTitle, AutoUpdater.CurrentVersion);
            labelUpdate.Text = string.Format(resources.GetString("labelUpdate.Text", CultureInfo.CurrentCulture),
                                             AutoUpdater.AppTitle);
            labelDescription.Text =
                string.Format(resources.GetString("labelDescription.Text", CultureInfo.CurrentCulture),
                              AutoUpdater.AppTitle, AutoUpdater.CurrentVersion, AutoUpdater.InstalledVersion);
            if (string.IsNullOrEmpty(AutoUpdater.ChangelogURL))
            {
                HideReleaseNotes = true;
                var reduceHeight = labelReleaseNotes.Height + webBrowser.Height;
                labelReleaseNotes.Hide();
                webBrowser.Hide();

                Height -= reduceHeight;

                buttonSkip.Location        = new Point(buttonSkip.Location.X, buttonSkip.Location.Y - reduceHeight);
                buttonRemindLater.Location = new Point(buttonRemindLater.Location.X,
                                                       buttonRemindLater.Location.Y - reduceHeight);
                buttonUpdate.Location = new Point(buttonUpdate.Location.X, buttonUpdate.Location.Y - reduceHeight);
            }
        }
        public DownloadUpdateDialog(string downloadURL)
        {
            InitializeComponent();
            AutoUpdater.UseSystemFont(this);

            _downloadURL = downloadURL;
        }
Beispiel #3
0
 public RemindLaterForm()
 {
     InitializeComponent();
     AutoUpdater.UseSystemFont(this);
 }