Ejemplo n.º 1
0
 /// <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 {}
 }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
        private void BuscarVersion(object target)
        {
            try
            {
                mLastVersion = VersionData.GetLastVersion();
                picNewVersion.Invoke(new SimpleHandler(MostrarVersion));
            }
            catch
            { }

        }