private void OnFalconLightChanged(object sender, FalconLightChangedEventArgs e) { if (e.newValue == true) { OutputState = true; } else { OutputState = false; } speakNewValue(e); }
private void speakNewValue(FalconLightChangedEventArgs e) { if (e.oldValue.HasValue && e.newValue.HasValue) { if (e.newValue == true) { DebugUtils.Speak(string.Format("{0} ON", FalconLight.Label)); } else { DebugUtils.Speak(string.Format("{0} OFF", FalconLight.Label)); } } }