diff ServerMonitor/Controls/ServerSummaryControl.cs @ 4:3142e52cbe69

Lots more progress
author Brad Greco <brad@bgreco.net>
date Sun, 10 Feb 2019 20:51:26 -0500
parents 3e1a2131f897
children 052aa62cb42a
line wrap: on
line diff
--- a/ServerMonitor/Controls/ServerSummaryControl.cs	Fri Jan 11 22:34:18 2019 -0500
+++ b/ServerMonitor/Controls/ServerSummaryControl.cs	Sun Feb 10 20:51:26 2019 -0500
@@ -26,6 +26,14 @@
             }
             Server = server;
             ServerNameLabel.Text = Server.Name;
+            StatusPictureBox.Parent = ServerPictureBox;
+            StatusPictureBox.Image = Server.Status.GetIcon();
+        }
+
+        public override void Refresh()
+        {
+            StatusPictureBox.Image = Server.Status.GetIcon();
+            base.Refresh();
         }
 
         private void Control_Click(object sender, EventArgs e)