private void LinkUpdate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (UpdateNotify showUpdate = new UpdateNotify()) { if (showUpdate.ShowDialog(this) == DialogResult.Yes) { OsUtils.LaunchUrl(new Uri("https://nerdoftheherd.com/tools/radiodld/"), "Download Update (About)"); this.Close(); } } }
private void UpdateAvailable() { if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate { this.UpdateAvailable(); }); return; } if (Settings.LastUpdatePrompt.AddDays(7) < DateTime.Now) { Settings.LastUpdatePrompt = DateTime.Now; using (UpdateNotify showUpdate = new UpdateNotify()) { if (this.WindowState == FormWindowState.Minimized || !this.Visible) { showUpdate.StartPosition = FormStartPosition.CenterScreen; } if (showUpdate.ShowDialog(this) == DialogResult.Yes) { OsUtils.LaunchUrl(new Uri("https://nerdoftheherd.com/tools/radiodld/"), "Download Update (Auto)"); } } } }