コード例 #1
0
 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; });
     }
 }
コード例 #2
0
 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();
     }
 }