Mercurial > servermonitor
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:96f0b028176d | 4:3142e52cbe69 |
---|---|
24 control.Cursor = Cursors.Hand; | 24 control.Cursor = Cursors.Hand; |
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; | |
30 StatusPictureBox.Image = Server.Status.GetIcon(); | |
31 } | |
32 | |
33 public override void Refresh() | |
34 { | |
35 StatusPictureBox.Image = Server.Status.GetIcon(); | |
36 base.Refresh(); | |
29 } | 37 } |
30 | 38 |
31 private void Control_Click(object sender, EventArgs e) | 39 private void Control_Click(object sender, EventArgs e) |
32 { | 40 { |
33 Click?.Invoke(this, e); | 41 Click?.Invoke(this, e); |