private void CheckForNewVersion(bool forceShowResult)
{
string lastStableVersionInfo = ReadFromWeb("https://pocorall.github.io/scm-notifier/LastStableVersion.txt");
if (lastStableVersionInfo != null)
{
lastStableVersion = new Version (lastStableVersionInfo.Split ('\n')[0]);
if ((lastStableVersion > AboutForm.Version) ||
((lastStableVersion == AboutForm.Version) && (AboutForm.VersionStatus != ""))) // if alpha/beta version
{
SafeInvoke (new MethodInvoker (ShowNewVersion), null, Int32.MaxValue);
}
else if (forceShowResult)
{
SafeInvoke (new MethodInvoker (ShowNoNewVersion), null, Int32.MaxValue);
}
}
else if (forceShowResult)
{
SafeInvoke (new MethodInvoker (ErrorCheckingForNewVersion), null, Int32.MaxValue);
}
}