Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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();
        }