HamBook – Diff between revs 10 and 12

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 10 Rev 12
Line 9... Line 9...
9 { 9 {
10 [XmlRoot(Namespace = "urn:hambook-configuration-schema", ElementName = "Configuration")] 10 [XmlRoot(Namespace = "urn:hambook-configuration-schema", ElementName = "Configuration")]
11 public class Configuration : INotifyPropertyChanged 11 public class Configuration : INotifyPropertyChanged
12 { 12 {
13 private bool _launchOnBoot = false; 13 private bool _launchOnBoot = false;
14   -  
15 private string _radio = "Yaesu FT-891"; 14 private string _radio = "Yaesu FT-891";
16 private string _port = "COM1"; 15 private string _port = "COM1";
17 private int _speed = 38400; 16 private int _speed = 38400;
18 private int _dataBits = 8; 17 private int _dataBits = 8;
19 private RJCP.IO.Ports.Parity _parity = RJCP.IO.Ports.Parity.None; 18 private RJCP.IO.Ports.Parity _parity = RJCP.IO.Ports.Parity.None;
Line 21... Line 20...
21 private Definitions _definitions = new Definitions(); 20 private Definitions _definitions = new Definitions();
22 private RJCP.IO.Ports.Handshake _handshake = RJCP.IO.Ports.Handshake.None; 21 private RJCP.IO.Ports.Handshake _handshake = RJCP.IO.Ports.Handshake.None;
23 private SerialPortTimeout _serialPortTimeout = new SerialPortTimeout(); 22 private SerialPortTimeout _serialPortTimeout = new SerialPortTimeout();
24 private int _scanDetectPause = 10; 23 private int _scanDetectPause = 10;
25 private Audio _audio = new Audio(); 24 private Audio _audio = new Audio();
-   25 private Notifications _notifications = new Notifications();
Line 26... Line 26...
26   26  
27 public bool LaunchOnBoot 27 public bool LaunchOnBoot
28 { 28 {
29 get => _launchOnBoot; 29 get => _launchOnBoot;
Line 200... Line 200...
200 _audio = value; 200 _audio = value;
201 OnPropertyChanged(); 201 OnPropertyChanged();
202 } 202 }
203 } 203 }
Line -... Line 204...
-   204  
-   205 public Notifications Notifications
-   206 {
-   207 get => _notifications;
-   208 set
-   209 {
-   210 if (value == _notifications)
-   211 {
-   212 return;
-   213 }
-   214  
-   215 _notifications = value;
-   216 OnPropertyChanged();
-   217 }
-   218 }
204   219  
205 public Configuration() 220 public Configuration()
206 { 221 {
Line 207... Line 222...
207 } 222 }