コード例 #1
0
        private void OnFalconLightChanged(object sender, FalconLightChangedEventArgs e)
        {
            if (e.newValue == true)
            {
                OutputState = true;
            }
            else
            {
                OutputState = false;
            }

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