private void Timer_Tick(object sender, EventArgs e) { ALSAlarm alarm = new ALSAlarm(); if (!alarm.isAlarmOn()) { alarm.PerformClick(); } timer.Stop(); }
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(); } } }
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(); } } }