コード例 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="country">A Country</param>
 ///<param name="settingBodyName">A SettingBodyName</param>
 ///
 public StandardSettingBody( Country country, string settingBodyName )
     : base(LearningDTD.STANDARDSETTINGBODY)
 {
     this.Country = country;
     this.SettingBodyName = settingBodyName;
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;CountriesOfResidency&gt;</c> element.</summary>
 /// <param name="CountryOfResidency">A person's country of residence.</param>
 ///<remarks>
 /// <para>This form of <c>setCountriesOfResidency</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CountriesOfResidency</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetCountriesOfResidency( Country CountryOfResidency )
 {
     RemoveChild( CommonDTD.DEMOGRAPHICS_COUNTRIESOFRESIDENCY);
     AddChild( CommonDTD.DEMOGRAPHICS_COUNTRIESOFRESIDENCY, new CountriesOfResidency( CountryOfResidency ) );
 }
コード例 #3
0
 ///<summary>Sets the value of the <c>&lt;StandardSettingBody&gt;</c> element.</summary>
 /// <param name="Country">A Country</param>
 /// <param name="SettingBodyName">A SettingBodyName</param>
 ///<remarks>
 /// <para>This form of <c>setStandardSettingBody</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardSettingBody</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetStandardSettingBody( Country Country, string SettingBodyName )
 {
     RemoveChild( LearningDTD.LEARNINGSTANDARDITEM_STANDARDSETTINGBODY);
     AddChild( LearningDTD.LEARNINGSTANDARDITEM_STANDARDSETTINGBODY, new StandardSettingBody( Country, SettingBodyName ) );
 }
コード例 #4
0
 ///<summary>Sets the value of the <c>&lt;CountriesOfCitizenship&gt;</c> element.</summary>
 /// <param name="CountryOfCitizenship">A person's country of citizenship.</param>
 ///<remarks>
 /// <para>This form of <c>setCountriesOfCitizenship</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CountriesOfCitizenship</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetCountriesOfCitizenship( Country CountryOfCitizenship )
 {
     RemoveChild( CommonDTD.DEMOGRAPHICS_COUNTRIESOFCITIZENSHIP);
     AddChild( CommonDTD.DEMOGRAPHICS_COUNTRIESOFCITIZENSHIP, new CountriesOfCitizenship( CountryOfCitizenship ) );
 }