public void OnDeviceConnected() { uiThread.Send(delegate (object state) { ConnectStatusLabel.Text = "Connecting..."; }, null); }