private void MainThread_OnErrorReceived(BriaAPI.ErrorReceivedEventArgs args)
 {
     this.ErrorMessage_Text.Text    = "Last error received: " + args.ErrorCode.ToString() + " " + args.ErrorText + " (for transactionId " + args.TransactionId + ")";
     this.ClearError_Button.Visible = true;
     this.Update();
 }
 private void OnErrorReceived(object sender, BriaAPI.ErrorReceivedEventArgs args)
 {
     this.BeginInvoke(onErrorReceivedDelegate, new Object[] { args });
 }