void controller_CalibrationStateChanged(object sender, EventArgs <Controller.CalibrationStateInfo> e) { if (e.Value.State > 0) { BeginInvoke((MethodInvoker) delegate() { TopMost = false; CalibrationForm.ShowCalibration(e.Value.TargetPoint); }); } else { BeginInvoke((MethodInvoker) delegate() { CalibrationForm.HideCalibration(); UpdateTrackingUtilization(controller.SourceLayout); TopMost = cbAlwaysOnTop.Checked; }); } }
void controller_CalibrationStateChanged(object sender, EventArgs <Controller.CalibrationStateInfo> e) { try { if (e.Value.State > 0) { BeginInvoke((MethodInvoker) delegate() { TopMost = false; CalibrationForm.ShowCalibration(e.Value.TargetPoint); }); } else { BeginInvoke((MethodInvoker) delegate() { CalibrationForm.HideCalibration(); UpdateTrackingUtilization(controller.SourceLayout); TopMost = cbAlwaysOnTop.Checked; }); } } catch (Exception) { MessageBox.Show("Error! Problema Con La Wiilib", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } }