当前位置: 首页>>代码示例>>C#>>正文


C# hamqsler.AdifEnumerations类代码示例

本文整理汇总了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);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:7,代码来源:UserdefStringTests.cs

示例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);
        }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:15,代码来源:ApplicationDefinedField.cs

示例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);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:16,代码来源:Userdef.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:SubmodeTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:PropModeTests.cs

示例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);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:UserdefEnumerationTests.cs

示例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));
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:CreditTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:QsoCompleteTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:ContTests.cs

示例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);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:CreditTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:QslSentTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:StringEnumerationValueTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:MyCountryTests.cs

示例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"));
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:CreditTests.cs

示例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());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:IotaTests.cs


注:本文中的hamqsler.AdifEnumerations类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。