diff ServerMonitor/Forms/ServerSummaryForm.cs @ 11:75ca86e0862c

Add setting to hide to notification area.
author Brad Greco <brad@bgreco.net>
date Mon, 15 Apr 2019 19:24:25 -0400
parents 9e77c0dccb66
children 7626b099aefd
line wrap: on
line diff
--- a/ServerMonitor/Forms/ServerSummaryForm.cs	Mon Apr 08 21:31:03 2019 -0400
+++ b/ServerMonitor/Forms/ServerSummaryForm.cs	Mon Apr 15 19:24:25 2019 -0400
@@ -192,7 +192,7 @@
 
         private void ServerSummaryForm_FormClosing(object sender, FormClosingEventArgs e)
         {
-            if (e.CloseReason == CloseReason.None || e.CloseReason == CloseReason.UserClosing)
+            if ((e.CloseReason == CloseReason.None || e.CloseReason == CloseReason.UserClosing) && Settings.Default.HideToNotificationArea)
             {
                 Hide();
                 e.Cancel = true;
@@ -297,7 +297,7 @@
             //System.Threading.Thread.Sleep(5000);
             UpdateManager manager = UpdateManager.Instance;
             manager.ReinstateIfRestarted();
-            manager.UpdateSource = new SimpleWebSource(@"c:\temp\feed.xml");
+            manager.UpdateSource = new SimpleWebSource("https://www.bgreco.net/test/servermonitor.xml");
             if (manager.State == UpdateManager.UpdateProcessState.NotChecked)
                 manager.BeginCheckForUpdates(CheckForUpdatesCallback, null);
         }