public void OnDeviceActivityEnd(CloverDeviceEvent deviceEvent)
{
try
{
uiThread.Send(delegate (object state) {
this.TabControl.Enabled = true;
UIStateButtonPanel.Controls.Clear();
DeviceCurrentStatus.Text = " ";
}, null);
}
catch (Exception)
{
// if UI goes away, uiThread may be disposed
}
}