Exemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem != null)
            {
                DeviceItem            item = (DeviceItem)comboBox1.SelectedItem;
                DeviceListener.Device d    = deviceListener.Find(item.id);

                int vol = (int)numericUpDown1.Value;
                deviceListener.AudioSetVolume(d, vol);
            }
        }