diff options
author | sr55 <[email protected]> | 2010-09-19 12:17:07 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-09-19 12:17:07 +0000 |
commit | 1d3a178d671af6d09b3e3be35562fe5070ace809 (patch) | |
tree | 288f38ac3e39cf5300fb7d3ddffff5e3604b1565 /win/C#/frmUpdater.cs | |
parent | 8cac9d8c62ce452ff27a6b70f005056f44b55581 (diff) |
WinGui:
- Moved some non-specific HandBrake code (Exception Window, Update Information Window, Update Download Window) out into a separate framework library. Hoping to make this more reusable at a later point.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3543 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r-- | win/C#/frmUpdater.cs | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs deleted file mode 100644 index 7d56c587e..000000000 --- a/win/C#/frmUpdater.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* 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. */
-
-namespace Handbrake
-{
- using System;
- using System.Windows.Forms;
- using Functions;
-
- /// <summary>
- /// A window to display update information.
- /// </summary>
- public partial class frmUpdater : Form
- {
- /// <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;
- GetRss();
- SetVersions();
- }
-
- /// <summary>
- /// Get the RSS feed
- /// </summary>
- private void GetRss()
- {
- 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 + ")";
- lbl_update_text.Text = "HandBrake " + newBuild + " is now available. " + old;
- }
-
- /// <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);
- download.ShowDialog();
- this.Close();
- }
-
- /// <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();
- }
-
- /// <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.Save();
-
- this.Close();
- }
- }
-}
\ No newline at end of file |