HamBook – Diff between revs 5 and 7
?pathlinks?
Rev 5 | Rev 7 | |||
---|---|---|---|---|
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; |
4 | using System.IO.Ports; |
|
5 | using System.Runtime.CompilerServices; |
5 | using System.Runtime.CompilerServices; |
|
- | 6 | using System.Threading; |
||
6 | using System.Xml.Serialization; |
7 | using System.Xml.Serialization; |
|
Line 7... | Line 8... | |||
7 | |
8 | |
|
8 | namespace Configuration |
9 | namespace Configuration |
|
9 | { |
10 | { |
|
Line 17... | Line 18... | |||
17 | private int _speed = 38400; |
18 | private int _speed = 38400; |
|
18 | private int _dataBits = 8; |
19 | private int _dataBits = 8; |
|
19 | private Parity _parity = Parity.None; |
20 | private Parity _parity = Parity.None; |
|
20 | private StopBits _stopBits = StopBits.One; |
21 | private StopBits _stopBits = StopBits.One; |
|
21 | private Definitions _definitions = new Definitions(); |
22 | private Definitions _definitions = new Definitions(); |
|
- | 23 | private Handshake _handshake = Handshake.None; |
||
- | 24 | private SerialPortTimeout _serialPortTimeout = new SerialPortTimeout(); |
||
Line 22... | Line 25... | |||
22 | |
25 | |
|
23 | public bool LaunchOnBoot |
26 | public bool LaunchOnBoot |
|
24 | { |
27 | { |
|
25 | get => _launchOnBoot; |
28 | get => _launchOnBoot; |
|
Line 123... | Line 126... | |||
123 | _stopBits = value; |
126 | _stopBits = value; |
|
124 | OnPropertyChanged(); |
127 | OnPropertyChanged(); |
|
125 | } |
128 | } |
|
126 | } |
129 | } |
|
Line -... | Line 130... | |||
- | 130 | |
||
- | 131 | public Handshake Handshake |
||
- | 132 | { |
||
- | 133 | get => _handshake; |
||
- | 134 | set |
||
- | 135 | { |
||
- | 136 | if (value == _handshake) |
||
- | 137 | { |
||
- | 138 | return; |
||
- | 139 | } |
||
- | 140 | |
||
- | 141 | _handshake = value; |
||
- | 142 | OnPropertyChanged(); |
||
- | 143 | } |
||
- | 144 | } |
||
- | 145 | |
||
- | 146 | public SerialPortTimeout SerialPortTimeout |
||
- | 147 | { |
||
- | 148 | get => _serialPortTimeout; |
||
- | 149 | set |
||
- | 150 | { |
||
- | 151 | if (value == _serialPortTimeout) |
||
- | 152 | { |
||
- | 153 | return; |
||
- | 154 | } |
||
- | 155 | |
||
- | 156 | _serialPortTimeout = value; |
||
- | 157 | OnPropertyChanged(); |
||
- | 158 | } |
||
- | 159 | } |
||
127 | |
160 | |
|
128 | public Definitions Definitions |
161 | public Definitions Definitions |
|
129 | { |
162 | { |
|
130 | get => _definitions; |
163 | get => _definitions; |
|
131 | set |
164 | set |