public void checkForUpdate(String _appId, String _currentAppVersionString)
{
currentAppVersionString = _currentAppVersionString;
appId = _appId;
currentAppVersion = new Version(currentAppVersionString);
Thread thread = new Thread(checkForUpdateThread);
thread.Start();
if (pollTimeInSeconds > 0)
{
if (pollTimer == null)
{
pollTimer = new System.Timers.Timer(pollTimeInSeconds * 1000);
pollTimer.Elapsed += pollTimer_ElapsedSink;
pollTimer.AutoReset = true;
pollTimer.Start();
}
}
}