void Runner_NewVersionAvailable(CodePlexNewReleaseChecker.Release obj) { //show popup that new version is available. NewPulseVersion npv = new NewPulseVersion(); npv.LoadRelease(obj); npv.ShowDialog(); }
public void LoadRelease(CodePlexNewReleaseChecker.Release release) { _release = release; //get current version string versionDesc = "{0} ({1})"; string version = string.Format("Pulse {0}", Assembly.GetExecutingAssembly().GetName().Version.ToString()); lblOldVersion.Text = version; lblNewVersion.Text = string.Format(versionDesc, _release.Name, _release.ReleaseDate.Value.ToShortDateString()); rtbDesc.Text = _release.Description; }