blob: fb0cebd901bf6f670092c5075a6d5e8ee6ab1cfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
}
}
}
|