/// <summary>
 /// OnAttributesChanged runs when the CustomAttributes property has changed.
 /// </summary>
 protected override void OnAttributesChanged()
 {
     //Get the List settings out of the "Attributes"
     if ((CustomAttributes != null))
     {
         foreach (Attribute attribute in CustomAttributes)
         {
             var listAtt = attribute as LanguagesListTypeAttribute;
             if (listAtt != null)
             {
                 _ListType = listAtt.ListType;
                 break;
             }
         }
     }
 }
 /// <summary>
 /// Initializes a new instance of the LanguagesListTypeAttribute class.
 /// </summary>
 /// <param name="type">The type of List</param>
 public LanguagesListTypeAttribute(LanguagesListType type)
 {
     _ListType = type;
 }
 /// <summary>
 /// Initializes a new instance of the LanguagesListTypeAttribute class.
 /// </summary>
 /// <param name="type">The type of List</param>
 public LanguagesListTypeAttribute(LanguagesListType type)
 {
     _ListType = type;
 }
Example #4
0
		/// <summary>
		/// OnAttributesChanged runs when the CustomAttributes property has changed.
		/// </summary>
		/// <history>
		///     [cnurse]	02/18/2008	created
		/// </history>
		protected override void OnAttributesChanged()
		{
			//Get the List settings out of the "Attributes"
			if ((CustomAttributes != null))
			{
				foreach (Attribute attribute in CustomAttributes)
				{
					var listAtt = attribute as LanguagesListTypeAttribute;
					if (listAtt != null)
					{
						_ListType = listAtt.ListType;
						break;
					}
				}
			}
		}