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;
}
}