From 1b35152a4ca5ebdbb0b4ac5797fd35644f4d54b8 Mon Sep 17 00:00:00 2001 From: tombogle Date: Mon, 15 Jul 2024 17:29:52 -0400 Subject: [PATCH] Stubbed in a temporary minimal implementation of check for updates --- src/SayMore/UI/ProjectWindow/ProjectWindow.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/SayMore/UI/ProjectWindow/ProjectWindow.cs b/src/SayMore/UI/ProjectWindow/ProjectWindow.cs index 19bc1987..c570c09a 100644 --- a/src/SayMore/UI/ProjectWindow/ProjectWindow.cs +++ b/src/SayMore/UI/ProjectWindow/ProjectWindow.cs @@ -28,6 +28,7 @@ using SayMore.Media.MPlayer; using SayMore.UI.Overview; using SayMore.Utilities; +using SIL.Windows.Forms.Miscellaneous; namespace SayMore.UI.ProjectWindow { @@ -247,8 +248,17 @@ private void HandleExitClick(object sender, EventArgs e) /// ------------------------------------------------------------------------------------ private void HandleHelpAboutClick(object sender, EventArgs e) { - using (var dlg = new SIL.Windows.Forms.Miscellaneous.SILAboutBox(FileLocationUtilities.GetFileDistributedWithApplication("aboutbox.htm"))) - dlg.ShowDialog(); + using (var dlg = new SILAboutBox(FileLocationUtilities.GetFileDistributedWithApplication("aboutbox.htm"))) + { + dlg.CheckForUpdatesClicked += HandleAboutDialogCheckForUpdatesClick; + dlg.ShowDialog(this); + } + } + + private void HandleAboutDialogCheckForUpdatesClick(object sender, EventArgs e) + { + Analytics.Track("CheckForUpdates"); + MessageBox.Show("Note yet implemented. Visit software.sil.org/saymore/download to check for updated version.", ProductName); } /// ------------------------------------------------------------------------------------