コード例 #1
0
ファイル: Form_main.cs プロジェクト: vector-man/x-IMU-GUI
 /// <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);
 }
コード例 #2
0
ファイル: Form_main.cs プロジェクト: vector-man/x-IMU-GUI
 /// <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);
     }
 }