diff options
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r-- | win/C#/Functions/Common.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs new file mode 100644 index 000000000..fb0cebd90 --- /dev/null +++ b/win/C#/Functions/Common.cs @@ -0,0 +1,38 @@ +using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Handbrake.Functions
+{
+ class Common
+ {
+ public Boolean updateCheck()
+ {
+ try
+ {
+ Functions.RssReader rssRead = new Functions.RssReader();
+ string build = rssRead.build();
+
+ int latest = int.Parse(build);
+ int current = Properties.Settings.Default.build;
+ int skip = Properties.Settings.Default.skipversion;
+
+ if (latest == skip)
+ {
+ return false;
+ }
+ else
+ {
+ Boolean update = (latest > current);
+ return update;
+ }
+ }
+ catch (Exception exc)
+ {
+ MessageBox.Show(exc.ToString());
+ return false;
+ }
+ }
+ }
+}
|