本文整理汇总了C#中hamqsler.AdifEnumerations类的典型用法代码示例。如果您正苦于以下问题:C# AdifEnumerations类的具体用法?C# AdifEnumerations怎么用?C# AdifEnumerations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdifEnumerations类属于hamqsler命名空间,在下文中一共展示了AdifEnumerations类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestSepup
public void TestSepup()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
aEnums = new AdifEnumerations(str);
userdef1 = new Userdef("EPC", "S", aEnums);
}
示例2: ApplicationDefinedField
/// <summary>
/// Constructor
/// Note: no validation of input is performed in the constructor. Call Validate after
/// the constructor and when changing values.
/// </summary>
/// <param name="fldName">Name of application defined field</param>
/// <param name="dType">Data type of the field</param>
/// <param name="value">field value</param>
public ApplicationDefinedField(string fldName, string dType, string value,
AdifEnumerations aEnums)
: base(value)
{
fieldName = fldName;
DataType = new EnumerationValue(dType.ToUpper(), "DataType", aEnums);
}
示例3: Userdef
/// <summary>
/// Constructor
/// Note: no validation of input is performed in the constructor. Call Validate after
/// the constructor and when changing values.
/// </summary>
/// <param name="name">field name</param>
/// <param name="type">data type</param>
/// <param name="num">Userdef number</param>
/// <param name="enums">enumeration values</param>
public Userdef(string name, string type, string[] enums, AdifEnumerations adifEnums)
{
aEnums = adifEnums;
uName = name;
DataType = new EnumerationValue(type, "DataType", aEnums);
EnumField = new EnumerationField(enums);
}
示例4: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Submode sm = new Submode("ROS-EME", aEnums);
Assert.AreEqual("<Submode:7>ROS-EME", sm.ToAdifString());
}
示例5: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Prop_Mode pm = new Prop_Mode("EME", aEnums);
Assert.AreEqual("<Prop_Mode:3>EME", pm.ToAdifString());
}
示例6: TestSepup
public void TestSepup()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
aEnums = new AdifEnumerations(str);
string[] enums = {"A", "B", "E", "V"};
userdef1 = new Userdef("HamQSLerQSLStatus", "E", enums, aEnums);
}
示例7: TestIsInMediaNull
public void TestIsInMediaNull()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Credit credit = new Credit("IOTA", aEnums);
Assert.IsTrue(credit.IsInMedia(null));
}
示例8: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Qso_Complete qc = new Qso_Complete("NIL", aEnums);
Assert.AreEqual("<Qso_Complete:3>NIL", qc.ToAdifString());
}
示例9: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Cont cont = new Cont("AF", aEnums);
Assert.AreEqual("<Cont:2>AF", cont.ToAdifString());
}
示例10: TestCreditNameNoMedium
public void TestCreditNameNoMedium()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Credit credit = new Credit("IOTA", aEnums);
Assert.AreEqual("IOTA", credit.CreditName);
}
示例11: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Qsl_Sent rcvd = new Qsl_Sent("Y", aEnums);
Assert.AreEqual("<Qsl_Sent:1>Y", rcvd.ToAdifString());
}
示例12: TestToAdifString2
public void TestToAdifString2()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
StringEnumerationValue se = new StringEnumerationValue("e6", "Contest_ID", aEnums);
Assert.AreEqual("<StringEnumerationValue:2>e6", se.ToAdifString());
}
示例13: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
My_Country country = new My_Country("United States", aEnums);
Assert.AreEqual("<My_Country:13>UNITED STATES", country.ToAdifString());
}
示例14: TestIsInMediaFalse
public void TestIsInMediaFalse()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Credit credit = new Credit("IOTA:Card&Lotw&eQSL", aEnums);
Assert.IsFalse(credit.IsInMedia("QRZCOM"));
}
示例15: TestToAdifString
public void TestToAdifString()
{
Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
AdifEnumerations aEnums = new AdifEnumerations(str);
Iota iota = new Iota("NA-001", aEnums);
Assert.AreEqual("<Iota:6>NA-001", iota.ToAdifString());
}