protected virtual void onNTMChanged(OyEventArgs e)
 { if (NTMChanged != null) NTMChanged(this, e); }
 protected virtual void onSleepModeChanged(OyEventArgs e)
 {if (SleepModeChanged != null) SleepModeChanged(this, e);}
 protected virtual void onInputDeviceChanged(OyEventArgs e)
 { if (InputDeviceChanged != null) InputDeviceChanged(this, e); }
 protected virtual void onVolumeChanged(OyEventArgs e)
 {if (VolumeChanged != null) VolumeChanged(this, e);}
Exemplo n.º 5
0
 private void onkyoConnection_NTMChange(Object sender, OyEventArgs e)
 {
     setNTMlabel(e.eventString);
 }
Exemplo n.º 6
0
 private void onkyoConnection_SleepModeChange(Object sender, OyEventArgs e)
 {
     try
     {
         int smtime = Convert.ToInt32(e.eventString, 16);
         Decimal smtimeNo;
         Decimal.TryParse(smtime.ToString(), out smtimeNo);
         updateSleepModeLabel(smtimeNo);
         updateSleepModeTrackBar(smtime);
         Debug.WriteLine("event: " + e.eventString.ToString() + " Int: " + smtime);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 7
0
 private void onkyoConnection_VolumeChange(Object sender, OyEventArgs e)
 {
     try
     {
         int volume = Convert.ToInt32(e.eventString, 16);
         Decimal volumeNo;
         Decimal.TryParse(volume.ToString(), out volumeNo);
         updateVolumeLabel(volumeNo);
         updateVolTrackBar((int)volumeNo);
         Debug.WriteLine("event: " + e.eventString.ToString() + " Int: " + volume);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 8
0
        private void onkyoConnection_InputDeviceChange(Object sender, OyEventArgs e)
        {
            Debug.WriteLine("Device ID: " + e.eventString);
            try
            {
                InputDevice result = inputDev.Find(
                    delegate(InputDevice iD)
                    {
                        return (iD.deviceID.CompareTo(e.eventString)) == 0;
                    }
                );

                if (result.radio != null)
                {
                    tmpRadio = result.radio;
                    checkRadioButton();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }