summaryrefslogtreecommitdiffstats
path: root/win/C#/frmUpdater.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-01-21 20:47:15 +0000
committersr55 <[email protected]>2010-01-21 20:47:15 +0000
commit9ae5e6d54d2254ae9dbb08d56f2f55b5a2d3f6cd (patch)
tree39589a70ff421dca7af0348f8c81e4eab42a7a39 /win/C#/frmUpdater.cs
parent56fef9aafba02e1f6bac8724aeda00f78b77c712 (diff)
WinGui:
- Some code refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3081 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r--win/C#/frmUpdater.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs
index 816e00fac..12376068a 100644
--- a/win/C#/frmUpdater.cs
+++ b/win/C#/frmUpdater.cs
@@ -12,31 +12,31 @@ namespace Handbrake
{
public partial class frmUpdater : Form
{
- readonly AppcastReader _appcast;
+ readonly AppcastReader Appcast;
public frmUpdater(AppcastReader reader)
{
InitializeComponent();
- _appcast = reader;
+ Appcast = reader;
GetRss();
SetVersions();
}
private void GetRss()
{
- wBrowser.Url = _appcast.descriptionUrl;
+ wBrowser.Url = Appcast.DescriptionUrl;
}
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();