Exemplo n.º 1
0
        private void StandbyChanged(object obj, EventArgsStandby e)
        {
            Playback pb = obj as Playback;

            if (e.Standby)
            {
                Send("MainTextVolume", "Volume: Device in standby");
            }
            else
            {
                Send("MainTextVolume", "Volume: " + pb.Volume.ToString());
            }
        }
Exemplo n.º 2
0
 private void StandbyChanged(object obj, EventArgsStandby e)
 {
     this.BeginInvoke(
         (MethodInvoker) delegate() {
         if (e.Standby)
         {
             textBox2.Text = "Device in standby";
             textBox3.Text = "Device in standby";
         }
         else
         {
             textBox2.Text = iTarget.Box.Playback.TransportState;
             textBox3.Text = iTarget.Box.Playback.Volume.ToString();
         }
     });
 }