void PostStats(SYSTEM_STATUS_STRINGS status) { buttonChannel1.Text = "Channel 1 " + status.VideoChannel1.status; buttonChannel1.BackColor = status.VideoChannel1.color; buttonChannel2.Text = "Channel 2 " + status.VideoChannel2.status; buttonChannel2.BackColor = status.VideoChannel2.color; buttonChannel3.Text = "Channel 3 " + status.VideoChannel3.status; buttonChannel3.BackColor = status.VideoChannel3.color; buttonChannel4.Text = "Channel 4 " + status.VideoChannel4.status; buttonChannel4.BackColor = status.VideoChannel4.color; buttonFGStatus_1.Text = status.FrameGrabber_1.status; buttonFGStatus_1.BackColor = status.FrameGrabber_1.color; buttonFGStatus_0.Text = status.FrameGrabber_0.status; buttonFGStatus_0.BackColor = status.FrameGrabber_0.color; buttonGPSStatus.Text = status.GPS.status; buttonGPSStatus.BackColor = status.GPS.color; textBoxHotSwapStatus.Text = status.Hotswap.status; textBoxHotSwapStatus.ForeColor = status.Hotswap.color; string driveString = status.Drive.status.Replace("^^", ":"); buttonDiskDrive.Text = driveString; buttonDiskDrive.BackColor = status.Drive.color; buttonLPRServiceStatusIndicator.Text = status.Service.status; buttonLPRServiceStatusIndicator.BackColor = status.Service.color; progressBarPlateProcessQueueLevel.Value = (100 * status.LprPlateProcessQueCount.count) / 240; progressBarPlateProcessQueueLevel.Invalidate(true); labelServiceVersion.Text = status.ServiceVersion.status; }