private void errorsToolStripMenuItem_Click(object sender, EventArgs e) { Robot.Hardware.Robot robot = robotThread.Robot; if (robot != null) { robot.RequestErrors(); } }
private void RobotThread_OnErrorReceived(Robot.Hardware.Robot sender, Robot.Hardware.ErrorCodes Errors) { this.Invoke(new Action(() => { if (Errors != null) { MessageBox.Show(Errors.ToString(), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } })); }