private void Display(UpdateInfo info) { if (info.UpdateAvailable) { statusLabel.Text = "Update Available!"; versionLabel.Text = string.Format("Latest Version: {0} (Released {1})\nYour Version: {2}", info.LatestVer, info.Date, Program.GetVersion()); newLabel.Text = info.BugFixes; downloadButton.Enabled = true; } else { statusLabel.Text = "No Updates Available"; versionLabel.Text = "Your version is the latest one as of now."; downloadButton.Enabled = false; } }
private const string Url64Bit = "http://bakamplayer.u8sand.net/Baka MPlayer.7z"; // x86_64 #endregion Fields #region Constructors public UpdateForm(UpdateInfo info) { InitializeComponent(); Display(info); }