HamBook – Diff between revs 9 and 10
?pathlinks?
Rev 9 | Rev 10 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using Configuration; |
1 | using Configuration; |
|
- | 2 | using NAudio.CoreAudioApi; |
||
- | 3 | using NAudio.Wave; |
||
2 | using System; |
4 | using System; |
|
3 | using System.Collections.Generic; |
5 | using System.Collections.Generic; |
|
4 | using System.ComponentModel; |
6 | using System.ComponentModel; |
|
5 | using System.Data; |
7 | using System.Data; |
|
- | 8 | using System.Diagnostics; |
||
6 | using System.Drawing; |
9 | using System.Drawing; |
|
7 | using System.IO.Ports; |
10 | using System.IO.Ports; |
|
8 | using System.Linq; |
11 | using System.Linq; |
|
9 | using System.Text; |
12 | using System.Text; |
|
10 | using System.Threading; |
13 | using System.Threading; |
|
Line 63... | Line 66... | |||
63 | textBox2.DataBindings.Add(nameof(textBox1.Text), bandBindingSource, nameof(Band.Max), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
66 | textBox2.DataBindings.Add(nameof(textBox1.Text), bandBindingSource, nameof(Band.Max), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
|
Line 64... | Line 67... | |||
64 | |
67 | |
|
65 | textBox3.DataBindings.Add(nameof(textBox3.Text), _configuration.SerialPortTimeout, nameof(SerialPortTimeout.Read), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
68 | textBox3.DataBindings.Add(nameof(textBox3.Text), _configuration.SerialPortTimeout, nameof(SerialPortTimeout.Read), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
|
66 | textBox4.DataBindings.Add(nameof(textBox4.Text), _configuration.SerialPortTimeout, nameof(SerialPortTimeout.Write), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
69 | textBox4.DataBindings.Add(nameof(textBox4.Text), _configuration.SerialPortTimeout, nameof(SerialPortTimeout.Write), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
|
- | 70 | textBox5.DataBindings.Add(nameof(textBox5.Text), _configuration, nameof(_configuration.ScanDetectPause), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
||
- | 71 | |
||
- | 72 | |
||
- | 73 | comboBox9.DataBindings.Add(nameof(comboBox9.Text), _configuration.Audio, nameof(_configuration.Audio.InputDeviceFriendlyName), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
||
- | 74 | comboBox10.DataBindings.Add(nameof(comboBox10.Text), _configuration.Audio, nameof(_configuration.Audio.OutputDeviceFriendlyName), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
||
- | 75 | |
||
- | 76 | foreach (var deviceNumber in Enumerable.Range(0, WaveIn.DeviceCount)) |
||
- | 77 | { |
||
- | 78 | var capabilities = WaveIn.GetCapabilities(deviceNumber); |
||
- | 79 | |
||
- | 80 | comboBox9.Items.Add(capabilities.ProductName); |
||
- | 81 | } |
||
- | 82 | |
||
- | 83 | foreach (var deviceNumber in Enumerable.Range(0, WaveOut.DeviceCount)) |
||
- | 84 | { |
||
- | 85 | var capabilities = WaveOut.GetCapabilities(deviceNumber); |
||
- | 86 | comboBox10.Items.Add(capabilities.ProductName); |
||
67 | textBox5.DataBindings.Add(nameof(textBox5.Text), _configuration, nameof(_configuration.ScanDetectPause), true, DataSourceUpdateMode.OnPropertyChanged, string.Empty); |
87 | } |
|
Line 68... | Line 88... | |||
68 | } |
88 | } |
|
69 | |
89 | |
|
70 | private void button1_Click(object sender, EventArgs e) |
90 | private void button1_Click(object sender, EventArgs e) |