-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBandDecodingMethod.cs
42 lines (34 loc) · 1.02 KB
/
BandDecodingMethod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
namespace TwoBySixAntennaSwitch
{
public enum BandDecodingMethod
{
YaesuBcd = 0,
IcomVoltage = 1,
Civ = 2,
Kenwood = 3
}
public partial class Utilities
{
public static string BandDecodingMethodToString(BandDecodingMethod bandDecodingMethod)
{
switch (bandDecodingMethod)
{
case BandDecodingMethod.YaesuBcd:
return "Yaesu (BCD)";
case BandDecodingMethod.IcomVoltage:
return "Icom (Voltage)";
case BandDecodingMethod.Civ:
return "Icom (CI-V)";
case BandDecodingMethod.Kenwood:
return "Kenwood";
}
return "UNKNOWN";
}
public static string BandDecodingMethodToString(string bandDecodingMethod)
{
var x = (BandDecodingMethod) Convert.ToInt16(bandDecodingMethod);
return BandDecodingMethodToString(x);
}
}
}