HamBook – Diff between revs 7 and 9
?pathlinks?
Rev 7 | Rev 9 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using Configuration.Annotations; |
1 | using Configuration.Annotations; |
|
2 | using System.Collections.ObjectModel; |
2 | using System.Collections.ObjectModel; |
|
3 | using System.ComponentModel; |
3 | using System.ComponentModel; |
|
4 | using System.IO.Ports; |
- | ||
5 | using System.Runtime.CompilerServices; |
4 | using System.Runtime.CompilerServices; |
|
6 | using System.Threading; |
5 | using System.Threading; |
|
7 | using System.Xml.Serialization; |
6 | using System.Xml.Serialization; |
|
Line 8... | Line 7... | |||
8 | |
7 | |
|
Line 15... | Line 14... | |||
15 | |
14 | |
|
16 | private string _radio = "Yaesu FT-891"; |
15 | private string _radio = "Yaesu FT-891"; |
|
17 | private string _port = "COM1"; |
16 | private string _port = "COM1"; |
|
18 | private int _speed = 38400; |
17 | private int _speed = 38400; |
|
19 | private int _dataBits = 8; |
18 | private int _dataBits = 8; |
|
20 | private Parity _parity = Parity.None; |
19 | private RJCP.IO.Ports.Parity _parity = RJCP.IO.Ports.Parity.None; |
|
21 | private StopBits _stopBits = StopBits.One; |
20 | private RJCP.IO.Ports.StopBits _stopBits = RJCP.IO.Ports.StopBits.One; |
|
22 | private Definitions _definitions = new Definitions(); |
21 | private Definitions _definitions = new Definitions(); |
|
23 | private Handshake _handshake = Handshake.None; |
22 | private RJCP.IO.Ports.Handshake _handshake = RJCP.IO.Ports.Handshake.None; |
|
- | 23 | private SerialPortTimeout _serialPortTimeout = new SerialPortTimeout(); |
||
Line 24... | Line 24... | |||
24 | private SerialPortTimeout _serialPortTimeout = new SerialPortTimeout(); |
24 | private int _scanDetectPause = 10; |
|
25 | |
25 | |
|
26 | public bool LaunchOnBoot |
26 | public bool LaunchOnBoot |
|
27 | { |
27 | { |
|
Line 80... | Line 80... | |||
80 | |
80 | |
|
81 | _speed = value; |
81 | _speed = value; |
|
82 | OnPropertyChanged(); |
82 | OnPropertyChanged(); |
|
83 | } |
83 | } |
|
84 | } |
- | ||
85 | |
84 | } |
|
86 | public int DataBits |
85 | public int DataBits |
|
87 | { |
86 | { |
|
88 | get => _dataBits; |
87 | get => _dataBits; |
|
89 | set |
88 | set |
|
Line 95... | Line 94... | |||
95 | |
94 | |
|
96 | _dataBits = value; |
95 | _dataBits = value; |
|
97 | OnPropertyChanged(); |
96 | OnPropertyChanged(); |
|
98 | } |
97 | } |
|
- | 98 | } |
||
- | 99 | public int ScanDetectPause |
||
- | 100 | { |
||
- | 101 | get => _scanDetectPause; |
||
- | 102 | set |
||
- | 103 | { |
||
- | 104 | if (value == _scanDetectPause) |
||
- | 105 | { |
||
- | 106 | return; |
||
- | 107 | } |
||
- | 108 | |
||
- | 109 | _scanDetectPause = value; |
||
- | 110 | OnPropertyChanged(); |
||
- | 111 | } |
||
Line 99... | Line 112... | |||
99 | } |
112 | } |
|
100 | |
113 | |
|
101 | public Parity Parity |
114 | public RJCP.IO.Ports.Parity Parity |
|
102 | { |
115 | { |
|
103 | get => _parity; |
116 | get => _parity; |
|
104 | set |
117 | set |
|
Line 111... | Line 124... | |||
111 | _parity = value; |
124 | _parity = value; |
|
112 | OnPropertyChanged(); |
125 | OnPropertyChanged(); |
|
113 | } |
126 | } |
|
114 | } |
127 | } |
|
Line 115... | Line 128... | |||
115 | |
128 | |
|
116 | public StopBits StopBits |
129 | public RJCP.IO.Ports.StopBits StopBits |
|
117 | { |
130 | { |
|
118 | get => _stopBits; |
131 | get => _stopBits; |
|
119 | set |
132 | set |
|
120 | { |
133 | { |
|
Line 126... | Line 139... | |||
126 | _stopBits = value; |
139 | _stopBits = value; |
|
127 | OnPropertyChanged(); |
140 | OnPropertyChanged(); |
|
128 | } |
141 | } |
|
129 | } |
142 | } |
|
Line 130... | Line 143... | |||
130 | |
143 | |
|
131 | public Handshake Handshake |
144 | public RJCP.IO.Ports.Handshake Handshake |
|
132 | { |
145 | { |
|
133 | get => _handshake; |
146 | get => _handshake; |
|
134 | set |
147 | set |
|
135 | { |
148 | { |