• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# hamqsler.AdifEnumerations类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中hamqsler.AdifEnumerations的典型用法代码示例。如果您正苦于以下问题:C# AdifEnumerations类的具体用法?C# AdifEnumerations怎么用?C# AdifEnumerations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AdifEnumerations类属于hamqsler命名空间,在下文中一共展示了AdifEnumerations类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: TestToAdifString

 public void TestToAdifString()
 {
     Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
     Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
     AdifEnumerations aEnums = new AdifEnumerations(str);
     My_DXCC dxcc = new My_DXCC("512", aEnums);
     Assert.AreEqual("<My_DXCC:3>512", dxcc.ToAdifString());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:8,代码来源:MyDXCCTests.cs


示例17: CreditList

 /// <summary>
 /// Constructor
 /// Note: no validation of input is performed in the constructor. Call Validate after
 /// the constructor and when changing values.
 /// </summary>
 /// <param name="credits">string containing credits informatin</param>
 /// <param name="aEnums">AdifEnumerations object containing the Award, Credit, and
 /// QSL Medium enumerations</param>
 public CreditList(string credits, AdifEnumerations aEnums)
 {
     string[] creds = credits.Split(',');
     foreach(string credit in creds)
     {
         Credit c = new Credit(credit.Trim(' ').ToUpper(), aEnums);
         this.Add(c);
     }
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:17,代码来源:CreditList.cs


示例18: TestMethod

 public void TestMethod()
 {
     string err = string.Empty;
     Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
     Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
     AdifEnumerations aEnums = new AdifEnumerations(str);
     Clublog_Qso_Upload_Status status = new Clublog_Qso_Upload_Status("Y", aEnums);
     Assert.AreEqual("<Clublog_Qso_Upload_Status:1>Y", status.ToAdifString());
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:9,代码来源:ClublogQsoUploadStatusTests.cs


示例19: TestIsInEnumerationTrue

 public void TestIsInEnumerationTrue()
 {
     string err = string.Empty;
     Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
     Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
     AdifEnumerations aEnums = new AdifEnumerations(str);
     StringEnumerationValue se = new StringEnumerationValue("RAC-CANADA-DAY", "Contest_ID", aEnums);
     Assert.IsTrue(se.IsInEnumeration(out err));
     Assert.AreEqual(null, err);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:10,代码来源:StringEnumerationValueTests.cs


示例20: TestGetCountryNameValidCountryCode

 public void TestGetCountryNameValidCountryCode()
 {
     Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType());
     Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml");
     AdifEnumerations aEnums = new AdifEnumerations(str);
     My_DXCC dxcc = new My_DXCC("1", aEnums);
     string err = string.Empty;
     Assert.AreEqual("CANADA", dxcc.GetCountryName(out err));
     Assert.AreEqual(null, err);
 }
开发者ID:jimva3hj,项目名称:hamqsler,代码行数:10,代码来源:MyDXCCTests.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# iControl.GlobalLBPoolID类代码示例发布时间:2022-05-26
下一篇:
C# packets.Vector3D类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap