HamBook – Diff between revs 46 and 54
?pathlinks?
Rev 46 | Rev 54 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Generic; |
- | ||
3 | using System.Linq; |
- | ||
4 | using System.Text; |
- | ||
5 | using System.Threading.Tasks; |
- | ||
Line 6... | Line 2... | |||
6 | |
2 | |
|
7 | namespace HamBook.Radios.Generic |
3 | namespace HamBook.Radios.Generic |
|
8 | { |
4 | { |
|
9 | public class ClarifierDirection |
5 | public class ClarifierDirection |
|
10 | { |
- | ||
11 | public ShiftDirection Direction { get; set; } |
- | ||
12 | |
6 | { |
|
13 | public ClarifierDirection(char symbol) : this() |
7 | public ClarifierDirection(char symbol) : this() |
|
14 | { |
8 | { |
|
15 | Direction = Parse(symbol); |
9 | Direction = Parse(symbol); |
|
Line 20... | Line 14... | |||
20 | Direction = Parse(symbol); |
14 | Direction = Parse(symbol); |
|
21 | } |
15 | } |
|
Line 22... | Line 16... | |||
22 | |
16 | |
|
23 | public ClarifierDirection() |
17 | public ClarifierDirection() |
|
24 | { |
- | ||
25 | |
18 | { |
|
Line 26... | Line 19... | |||
26 | } |
19 | } |
|
27 | |
20 | |
|
28 | public ClarifierDirection(ShiftDirection shiftDirection) |
21 | public ClarifierDirection(ShiftDirection shiftDirection) |
|
29 | { |
22 | { |
|
Line -... | Line 23... | |||
- | 23 | Direction = shiftDirection; |
||
- | 24 | } |
||
30 | Direction = shiftDirection; |
25 | |
|
31 | } |
26 | public ShiftDirection Direction { get; set; } |
|
32 | |
27 | |
|
33 | private static ShiftDirection Parse(char symbol) |
28 | private static ShiftDirection Parse(char symbol) |
|
34 | { |
29 | { |
|
Line 95... | Line 90... | |||
95 | default: |
90 | default: |
|
96 | throw new ArgumentException(); |
91 | throw new ArgumentException(); |
|
97 | } |
92 | } |
|
98 | } |
93 | } |
|
99 | } |
94 | } |
|
100 | } |
95 | } |
|
101 | |
96 | |