HamBook – Diff between revs 38 and 44

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 38 Rev 44
Line 6... Line 6...
6 using System.Xml.Serialization; 6 using System.Xml.Serialization;
Line 7... Line 7...
7   7  
8 namespace HamBook.Radios.Generic 8 namespace HamBook.Radios.Generic
9 { 9 {
10 public class MemoryChannel : IEquatable<MemoryChannel> 10 public class MemoryChannel : IEquatable<MemoryChannel>
11 { 11 {
12 private string _currentLocation = string.Empty; -  
13 private int _frequency = 0; -  
14 private ClarifierDirection _clarifierDirection = new ClarifierDirection(); -  
15 private int _clarifierOffset = 0; -  
16 private bool _clar = false; -  
17 private MemoryRadioMode _memoryRadioMode = new MemoryRadioMode(); -  
18 private CtcssMode _ctcssMode = new CtcssMode(); -  
19 private RadioPhase _phase = new RadioPhase(); -  
20 private bool _tag = false; -  
Line 21... Line 12...
21 private string _text = string.Empty; 12 public string CurrentLocation { get; set; }
Line 22... Line 13...
22   13  
Line 23... Line 14...
23 public string CurrentLocation { get => _currentLocation; set => _currentLocation = value; } 14 public int Frequency { get; set; }
Line 24... Line 15...
24   15  
Line 25... Line 16...
25 public int Frequency { get => _frequency; set => _frequency = value; } 16 public ClarifierDirection ClarifierDirection { get; set; }
Line 26... Line 17...
26   17  
Line 27... Line 18...
27 public ClarifierDirection ClarifierDirection { get => _clarifierDirection; set => _clarifierDirection = value; } 18 public int ClarifierOffset { get; set; }
Line 28... Line 19...
28   19  
Line 29... Line -...
29 public int ClarifierOffset { get => _clarifierOffset; set => _clarifierOffset = value; } -  
30   -  
31 public bool Clar { get => _clar; set => _clar = value; } 20 public bool Clar { get; set; }
Line 32... Line 21...
32   21  
33 public MemoryRadioMode MemoryRadioMode { get => _memoryRadioMode; set => _memoryRadioMode = value; } 22 public MemoryRadioMode MemoryRadioMode { get; set; }
34   23  
Line 49... Line 38...
49 return CurrentLocation == other.CurrentLocation && 38 return CurrentLocation == other.CurrentLocation &&
50 Frequency == other.Frequency && 39 Frequency == other.Frequency &&
51 ClarifierDirection.Direction == other.ClarifierDirection.Direction && 40 ClarifierDirection.Direction == other.ClarifierDirection.Direction &&
52 ClarifierOffset == other.ClarifierOffset && 41 ClarifierOffset == other.ClarifierOffset &&
53 Clar == other.Clar && 42 Clar == other.Clar &&
54 MemoryRadioMode.Mode == other.MemoryRadioMode.Mode && 43 MemoryRadioMode.Code == other.MemoryRadioMode.Code &&
55 CtcssMode.Mode == other.CtcssMode.Mode && 44 CtcssMode.Mode == other.CtcssMode.Mode &&
56 Phase.Phase == other.Phase.Phase && 45 Phase.Phase == other.Phase.Phase &&
57 Tag == other.Tag && 46 Tag == other.Tag &&
58 Text == other.Text; 47 Text == other.Text;
59 } 48 }