private void checkForUpdateToolStripMenuItem_Click(object sender, EventArgs e) { EmbroideryReaderUpdates updater = new EmbroideryReaderUpdates(settings.updateLocation, null, null); updater.waitForInfo(); if (updater.GetLastError() != "") { MessageBox.Show(translation.GetTranslatedString(Translation.StringID.ERROR_UPDATE) + // "Encountered an error while checking for updates: " updater.GetLastError()); } else if (updater.IsUpdateAvailable()) { if (MessageBox.Show(String.Format(translation.GetTranslatedString(Translation.StringID.NEW_VERSION_MESSAGE), updater.VersionAvailable(), updater.getReleaseDate().ToShortDateString(), currentVersion()) + // "Version " + updater.VersionAvailable() + " was released on " + updater.getReleaseDate().ToShortDateString() + ". You have version " + currentVersion() + "." Environment.NewLine + translation.GetTranslatedString(Translation.StringID.NEW_VERSION_QUESTION), // "Would you like to go to the Embroidery Reader website to download or find out more about the new version?", translation.GetTranslatedString(Translation.StringID.NEW_VERSION_TITLE), // "New version available", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { try { System.Diagnostics.Process.Start(updater.getMoreInfoURL()); } catch (Exception ex) { MessageBox.Show(translation.GetTranslatedString(Translation.StringID.ERROR_WEBPAGE) + // "An error occured while trying to open the webpage:" Environment.NewLine + ex.ToString()); } } } else { MessageBox.Show(translation.GetTranslatedString(Translation.StringID.NO_UPDATE) + // "No updates are available right now." Environment.NewLine + String.Format(translation.GetTranslatedString(Translation.StringID.LATEST_VERSION), updater.VersionAvailable(), currentVersion())); // "(Latest version is " + updater.VersionAvailable() + ", you have version " + currentVersion() + ")"); } }