當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。