comparison ServerMonitor/Controls/ServerSummaryControl.cs @ 8:052aa62cb42a

Single instance. Add autorun option. Add icons. General enhancements.
author Brad Greco <brad@bgreco.net>
date Sat, 09 Mar 2019 20:14:03 -0500
parents 3142e52cbe69
children 7127d5b5ac75
comparison
equal deleted inserted replaced
7:8486ab7d2357 8:052aa62cb42a
25 control.Click += Control_Click; 25 control.Click += Control_Click;
26 } 26 }
27 Server = server; 27 Server = server;
28 ServerNameLabel.Text = Server.Name; 28 ServerNameLabel.Text = Server.Name;
29 StatusPictureBox.Parent = ServerPictureBox; 29 StatusPictureBox.Parent = ServerPictureBox;
30 StatusPictureBox.Image = Server.Status.GetIcon(); 30 StatusPictureBox.Image = Server.Status.GetImage();
31 } 31 }
32 32
33 public override void Refresh() 33 public override void Refresh()
34 { 34 {
35 StatusPictureBox.Image = Server.Status.GetIcon(); 35 StatusPictureBox.Image = Server.Status.GetImage();
36 base.Refresh(); 36 base.Refresh();
37 } 37 }
38 38
39 private void Control_Click(object sender, EventArgs e) 39 private void Control_Click(object sender, EventArgs e)
40 { 40 {