summaryrefslogtreecommitdiffstats
path: root/win/C#/frmUpdater.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r--win/C#/frmUpdater.cs70
1 files changed, 57 insertions, 13 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs
index f2e7c02d6..7d56c587e 100644
--- a/win/C#/frmUpdater.cs
+++ b/win/C#/frmUpdater.cs
@@ -1,8 +1,7 @@
/* frmUpdater.cs $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
namespace Handbrake
{
@@ -10,47 +9,92 @@ namespace Handbrake
using System.Windows.Forms;
using Functions;
+ /// <summary>
+ /// A window to display update information.
+ /// </summary>
public partial class frmUpdater : Form
{
- private readonly AppcastReader Appcast;
+ /// <summary>
+ /// An instance of the Appcast Reader
+ /// </summary>
+ private readonly AppcastReader appcast;
+ /// <summary>
+ /// Initializes a new instance of the <see cref="frmUpdater"/> class.
+ /// </summary>
+ /// <param name="reader">
+ /// The appcast reader.
+ /// </param>
public frmUpdater(AppcastReader reader)
{
InitializeComponent();
- Appcast = reader;
+ appcast = reader;
GetRss();
SetVersions();
}
+ /// <summary>
+ /// Get the RSS feed
+ /// </summary>
private void GetRss()
{
- wBrowser.Url = Appcast.DescriptionUrl;
+ wBrowser.Url = appcast.DescriptionUrl;
}
+ /// <summary>
+ /// Set the versions
+ /// </summary>
private void SetVersions()
{
string old = "(You have: " + Properties.Settings.Default.hb_version.Trim() + " / " +
Properties.Settings.Default.hb_build.ToString().Trim() + ")";
- string newBuild = Appcast.Version.Trim() + " (" + Appcast.Build + ")";
+ string newBuild = appcast.Version.Trim() + " (" + appcast.Build + ")";
lbl_update_text.Text = "HandBrake " + newBuild + " is now available. " + old;
}
- private void btn_installUpdate_Click(object sender, EventArgs e)
+ /// <summary>
+ /// Handle the Install Update button click event.
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The EventArgs.
+ /// </param>
+ private void BtnInstallUpdateClick(object sender, EventArgs e)
{
- frmDownload download = new frmDownload(Appcast.DownloadFile);
+ frmDownload download = new frmDownload(appcast.DownloadFile);
download.ShowDialog();
this.Close();
}
- private void btn_remindLater_Click(object sender, EventArgs e)
+ /// <summary>
+ /// Handle the Remind Later button click event
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The EventArgs.
+ /// </param>
+ private void BtnRemindLaterClick(object sender, EventArgs e)
{
this.Close();
}
- private void btn_skip_Click(object sender, EventArgs e)
+ /// <summary>
+ /// Handle the Skip update button click event
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
+ private void BtnSkipClick(object sender, EventArgs e)
{
- Properties.Settings.Default.skipversion = int.Parse(Appcast.Build);
+ Properties.Settings.Default.skipversion = int.Parse(appcast.Build);
Properties.Settings.Default.Save();
this.Close();