public void OnDeviceError(CloverDeviceErrorEvent deviceErrorEvent) { uiThread.Send(delegate (object state) { AlertForm.Show(this, "Device Error", deviceErrorEvent.Message); }, null); }