public frmAbout() { string descriptionText = global::Snes360SGC.Properties.Resources.Description; VersionManager appVersionManager = new VersionManager(); VersionInfo.versionInfoStruct appVersionInfo = new VersionInfo.versionInfoStruct(); appVersionInfo = appVersionManager.getCurrentVersion(); descriptionText = descriptionText.Replace("[version]", appVersionInfo.getFullVersion()); InitializeComponent(); this.Text = String.Format("About {0}", AssemblyTitle); this.labelProductName.Text = AssemblyProduct; this.labelVersion.Text = String.Format("Version {0}", appVersionInfo.getFullVersion()); this.labelCopyright.Text = AssemblyCopyright; this.labelCompanyName.Text = ""; // AssemblyCompany; this.textBoxDescription.Text = descriptionText;//AssemblyDescription; }
private void btnCheckForUpdates_Click(object sender, EventArgs e) { setLatestVersionFont(Color.Black, FontStyle.Regular); txtLatestVersion.Text = "Checking..."; LatestVersionInfo = VersionManagement.getNewestVersion(TEMP_DIRECTORY); if (VersionManagement.checkIfNewer(InstalledVersionInfo, LatestVersionInfo)) { btnUpdate.Enabled = true; getChangeLog(); setLatestVersionFont(Color.Green, FontStyle.Bold); } txtLatestVersion.Text = LatestVersionInfo.getFullVersion(); }
private void Init() { TEMP_DIRECTORY = localSettings.getTmpDirectory().ToString();// localSettings.getInstance().TEMP_DIRECTORY; if(!Directory.Exists(TEMP_DIRECTORY)) Directory.CreateDirectory(TEMP_DIRECTORY); txtLatestVersion.BackColor = txtLatestVersion.BackColor; txtInstalledVersion.Text = ""; txtLatestVersion.Text = "Check for Updates"; InstalledVersionInfo = VersionManagement.getInstalledVersionInfo(); txtInstalledVersion.Text = VersionManagement.getInstalledFullVersionString(); }