summaryrefslogtreecommitdiffstats
path: root/win/C#/frmUpdater.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-12-03 16:49:41 +0000
committersr55 <[email protected]>2009-12-03 16:49:41 +0000
commit7fcdab64f2b7c161b19b8cd0250cfbb799729759 (patch)
treef4ceebb6f00d651102a2843ebc5a2bb0d7868ace /win/C#/frmUpdater.cs
parentb993d4fee1ecb820739bff92ffc8f4cf00a0b558 (diff)
WinGui:
- Some minor code refactoring git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3000 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r--win/C#/frmUpdater.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs
index 789a620fc..816e00fac 100644
--- a/win/C#/frmUpdater.cs
+++ b/win/C#/frmUpdater.cs
@@ -12,31 +12,31 @@ namespace Handbrake
{
public partial class frmUpdater : Form
{
- AppcastReader appcast;
+ readonly AppcastReader _appcast;
public frmUpdater(AppcastReader reader)
{
InitializeComponent();
- appcast = reader;
- getRss();
- setVersions();
+ _appcast = reader;
+ GetRss();
+ SetVersions();
}
- private void getRss()
+ private void GetRss()
{
- wBrowser.Url = appcast.descriptionUrl;
+ wBrowser.Url = _appcast.descriptionUrl;
}
- private void setVersions()
+ 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)
{
- frmDownload download = new frmDownload(appcast.downloadFile);
+ frmDownload download = new frmDownload(_appcast.downloadFile);
download.ShowDialog();
this.Close();
}
@@ -48,7 +48,7 @@ namespace Handbrake
private void btn_skip_Click(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();