/// <summary> /// Load the current version details from the Internet /// Then check the version of the engine against it. /// </summary> private void BuscarVersion(object target) { try { mLastVersion = VersionData.GetLastVersion(); picNewVersion.Invoke(new SimpleHandler(MostrarVersion)); } catch {} }
/// <summary> /// Confirm the working version against the latest one on the web /// </summary> /// <remarks> /// Displays a 'current version' image or another image to encourage an update. /// </remarks> private void MostrarVersion() { if (mLastVersion == null) { return; } string ver = typeof(FileHelperEngine).Assembly.GetName().Version.ToString(3); if (VersionData.CompararVersiones(ver, mLastVersion.Version) >= 0) { picCurrent.Visible = true; } else { picNewVersion.Visible = true; picNewVersion.Tag = mLastVersion; tip.SetToolTip(picNewVersion, "Version: " + mLastVersion.Version + Environment.NewLine + mLastVersion.Description); } }
/// <summary> /// Start the version screen with details downloaded /// from teh web earlier. /// </summary> /// <param name="version">Internet version information</param> public frmLastVersion(VersionData version) : this() { mLastVersion = version; }
private void BuscarVersion(object target) { try { mLastVersion = VersionData.GetLastVersion(); picNewVersion.Invoke(new SimpleHandler(MostrarVersion)); } catch { } }