BetterExplorer.MainWindow.AutoUpdater_UpdateAvailable C# (CSharp) Method

AutoUpdater_UpdateAvailable() private method

private AutoUpdater_UpdateAvailable ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
    private void AutoUpdater_UpdateAvailable(object sender, EventArgs e) {
      if (this._IsCheckUpdateFromTimer && !this._IsUpdateNotificationMessageBoxShown) {
        this._IsUpdateNotificationMessageBoxShown = true;
        var newVersion = this.autoUpdater.Version;
        var changes = this.autoUpdater.Changes;
        var config = new TaskDialogOptions();

        config.Owner = this;
        config.Title = "Update";
        config.MainInstruction = "There is new updated version " + newVersion + " available!";
        config.Content = "The new version have the following changes:\r\n" + changes;
        config.ExpandedInfo = "You can download and install the new version immediately by clicking \"Download & Install\" button.\r\nYou can skip this version from autoupdate check by clicking \"Skip this version\" button.";
        //config.VerificationText = "Don't show me this message again";
        config.CustomButtons = new string[] { "&Download & Install", "Skip this version", "&Close" };
        config.MainIcon = VistaTaskDialogIcon.SecurityWarning;

        if (newVersion.Contains("RC") || newVersion.Contains("Nightly") || newVersion.Contains("Beta") || newVersion.Contains("Alpha")) {
          config.FooterText = "This is an experimental version and may contains bugs. Use at your own risk!";
          config.FooterIcon = VistaTaskDialogIcon.Warning;
        } else {
          config.FooterText = "This is a final version and can be installed safely!";
          config.FooterIcon = VistaTaskDialogIcon.SecuritySuccess;
        }

        config.AllowDialogCancellation = true;
        config.Callback = taskDialog_Callback;

        TaskDialogResult res = TaskDialog.Show(config);
        this._IsCheckUpdateFromTimer = false;
        this._IsUpdateNotificationMessageBoxShown = false;
      }
    }
MainWindow