Пример #1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            ALSAlarm alarm = new ALSAlarm();

            if (!alarm.isAlarmOn())
            {
                alarm.PerformClick();
            }
            timer.Stop();
        }
Пример #2
0
 private void EyeXHost_EyeTrackingDeviceStatusChanged(object sender, EngineStateValue <EyeTrackingDeviceStatus> e)
 {
     if (AutoAlarm && e.Value.Equals(EyeTrackingDeviceStatus.DeviceNotConnected))
     {
         ALSAlarm alarm = new ALSAlarm();
         if (!alarm.isAlarmOn())
         {
             alarm.PerformClick();
         }
     }
 }
Пример #3
0
 private void EyeXHost_EyeTrackingDeviceStatusChanged(object sender, EngineStateValue<EyeTrackingDeviceStatus> e)
 {
     if (AutoAlarm && e.Value.Equals(EyeTrackingDeviceStatus.DeviceNotConnected))
     {
         ALSAlarm alarm = new ALSAlarm();
         if (!alarm.isAlarmOn())
         {
             alarm.PerformClick();
         }
     }
 }
Пример #4
0
 private void Timer_Tick(object sender, EventArgs e)
 {
     ALSAlarm alarm = new ALSAlarm();
     if (!alarm.isAlarmOn())
     {
         alarm.PerformClick();
     }
     timer.Stop();
 }