public Alarm ( object sender, |
||
sender | object | |
e | ||
return | void |
public void Alarm(object sender, EventArgs e)
{
LastSoundDetected = Helper.Now.AddSeconds(0.3d);
if (Micobject.detector.recordondetect)
{
StartSaving();
}
if (sender is IAudioSource)
{
FlashCounter = Helper.Now.AddSeconds(10);
SoundDetected = true;
return;
}
if (sender is LocalServer || sender is VolumeLevel || sender is CameraWindow)
{
FlashCounter = Helper.Now.AddSeconds(10);
DoAlert("alert");
}
}