/// <summary> /// xIMUserial ErrorDataReceived received event displays error in PassiveMessageBox. /// </summary> private void xIMUserial_ErrorDataReceived(object sender, x_IMU_API.ErrorData e) { PassiveMessageBox.Show("Error: " + e.GetMessage(), "Message From x-IMU", MessageBoxIcon.Error); }
/// <summary> /// xIMUserial CommandDataReceived event displays message in PassiveMessageBox if enabled by CheckBox. /// </summary> private void xIMUserial_CommandDataReceived(object sender, x_IMU_API.CommandData e) { if (checkBox_displayCommandConfirmations.Checked) { PassiveMessageBox.Show("Command confirmed: " + e.GetMessage(), "Message From x-IMU", MessageBoxIcon.Information); } }