diff options
author | sr55 <[email protected]> | 2008-08-27 23:45:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-08-27 23:45:44 +0000 |
commit | c1f31822b78859305328750ca0adcd0b1699f690 (patch) | |
tree | 9751e09ecee8a9199e5f49ae0af351f71a8be794 /win/C#/frmUpdater.cs | |
parent | 1833f566d3f9c7fbe0ef61b4f9304b6e0f7fddb5 (diff) |
WinGui:
- Code Refactoring and optimization to numerous files
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r-- | win/C#/frmUpdater.cs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs index ac4f7f5c1..6252bb9b8 100644 --- a/win/C#/frmUpdater.cs +++ b/win/C#/frmUpdater.cs @@ -18,19 +18,19 @@ namespace Handbrake public frmUpdater()
{
InitializeComponent();
-
+
getRss();
setVersions();
}
private void getRss()
- {
+ {
wBrowser.DocumentText = "<font face=\"verdana\" size=\"1\">" + rssRead.versionInfo() + "</font>";
}
private void setVersions()
{
- lbl_oldVersion.Text = "(you have: " + Properties.Settings.Default.hb_version + " / " + Properties.Settings.Default.hb_build + ").";
+ lbl_oldVersion.Text = "(you have: " + Properties.Settings.Default.hb_version + " / " + Properties.Settings.Default.hb_build + ").";
lbl_newVersion.Text = rssRead.version() + " (" + rssRead.build() + ")";
}
@@ -38,7 +38,7 @@ namespace Handbrake {
frmDownload download = new frmDownload();
download.Show();
- this.Close();
+ this.Close();
}
private void btn_remindLater_Click(object sender, EventArgs e)
@@ -48,15 +48,9 @@ namespace Handbrake private void btn_skip_Click(object sender, EventArgs e)
{
- try
- {
- Properties.Settings.Default.skipversion = int.Parse(rssRead.build());
- Properties.Settings.Default.Save();
- }
- catch (Exception exc)
- {
- MessageBox.Show(exc.ToString());
- }
+ Properties.Settings.Default.skipversion = int.Parse(rssRead.build());
+ Properties.Settings.Default.Save();
+
this.Close();
}
|