diff options
author | sr55 <[email protected]> | 2012-06-14 17:38:21 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-14 17:38:21 +0000 |
commit | 92292ed049a2f87f00cad38dcb659fe6b4f68623 (patch) | |
tree | 06c8adfce3c847a943f8a4460dfdc64f2de39807 /win/CS/ToolWindows/UpdateInfo.cs | |
parent | d3f5f2227d5fad9cd49f669ce8919a7857b9e964 (diff) |
WinGui: Remove the legacy WinForms GUI.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4732 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/ToolWindows/UpdateInfo.cs')
-rw-r--r-- | win/CS/ToolWindows/UpdateInfo.cs | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/win/CS/ToolWindows/UpdateInfo.cs b/win/CS/ToolWindows/UpdateInfo.cs deleted file mode 100644 index a893dbccc..000000000 --- a/win/CS/ToolWindows/UpdateInfo.cs +++ /dev/null @@ -1,125 +0,0 @@ -/* UpdateInfo.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.ToolWindows
-{
- using System;
- using System.Windows.Forms;
-
- using HandBrake.ApplicationServices.Model.General;
-
- /// <summary>
- /// A window to display update information.
- /// </summary>
- public partial class UpdateInfo : Form
- {
- /// <summary>
- /// An instance of the Appcast Reader
- /// </summary>
- private readonly UpdateCheckInformation appcast;
-
- /// <summary>
- /// The Current Version
- /// </summary>
- private readonly string currentVersion;
-
- /// <summary>
- /// The Current Build
- /// </summary>
- private readonly int currentBuild;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="UpdateInfo"/> class.
- /// </summary>
- /// <param name="reader">
- /// The appcast reader.
- /// </param>
- /// <param name="currentVersion">
- /// The current Version.
- /// </param>
- /// <param name="currentBuild">
- /// The current Build.
- /// </param>
- public UpdateInfo(UpdateCheckInformation reader, string currentVersion, int currentBuild)
- {
- InitializeComponent();
-
- appcast = reader;
- this.currentVersion = currentVersion;
- this.currentBuild = currentBuild;
- GetRss();
- SetVersions();
- }
-
- /// <summary>
- /// Gets the SkipVersion number
- /// </summary>
- public int SkipVersion { get; private set; }
-
-
- /// <summary>
- /// Get the RSS feed
- /// </summary>
- private void GetRss()
- {
- wBrowser.Url = appcast.DescriptionUrl;
- }
-
- /// <summary>
- /// Set the versions
- /// </summary>
- private void SetVersions()
- {
- string old = string.Format("(You have: {0} / {1})", this.currentVersion, this.currentBuild);
- string newBuild = appcast.Version.Trim() + " (" + appcast.Build + ")";
- lbl_update_text.Text = string.Format("HandBrake {0} is now available. {1}", newBuild, 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)
- {
- DownloadUpdate download = new DownloadUpdate(appcast.DownloadFile);
- download.ShowDialog();
- this.DialogResult = DialogResult.OK;
- }
-
- /// <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.DialogResult = DialogResult.Cancel;
- }
-
- /// <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)
- {
- this.SkipVersion = int.Parse(appcast.Build);
- this.DialogResult = DialogResult.OK;
- }
- }
-}
\ No newline at end of file |