summaryrefslogtreecommitdiffstats
path: root/win/C#/frmUpdater.cs
diff options
context:
space:
mode:
authorsr55 <sr55.hb@outlook.com>2007-11-19 19:21:53 +0000
committersr55 <sr55.hb@outlook.com>2007-11-19 19:21:53 +0000
commitb8778cc395681bf40e9f9a5fdcada956f174072d (patch)
treeda95afb46233e805c7af78729156f0de96ef3168 /win/C#/frmUpdater.cs
parentca6b1dbdf7a7249f8d9ea00cdfe4681a05ade2fa (diff)
WinGui:
- About window text cut down. Had some useless information. - New "sparkle"-like update manager. - Misc Other small updates and fixes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1070 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmUpdater.cs')
-rw-r--r--win/C#/frmUpdater.cs63
1 files changed, 63 insertions, 0 deletions
diff --git a/win/C#/frmUpdater.cs b/win/C#/frmUpdater.cs
new file mode 100644
index 000000000..bf36299fa
--- /dev/null
+++ b/win/C#/frmUpdater.cs
@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.IO;
+using System.Xml;
+using System.Net;
+
+namespace Handbrake
+{
+ public partial class frmUpdater : Form
+ {
+ Functions.RssReader rssRead = new Functions.RssReader();
+ 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.CliVersion + " / " + Properties.Settings.Default.build + ").";
+ lbl_newVersion.Text = rssRead.version() + " (" + rssRead.build() + ")";
+ }
+
+ private void btn_installUpdate_Click(object sender, EventArgs e)
+ {
+ frmDownload download = new frmDownload();
+ download.Show();
+ this.Close();
+ }
+
+ private void btn_remindLater_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void btn_skip_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ Properties.Settings.Default.skipversion = int.Parse(rssRead.build());
+ }
+ catch (Exception exc)
+ {
+ MessageBox.Show(exc.ToString());
+ }
+ this.Close();
+ }
+
+ }
+} \ No newline at end of file