internal EnumFieldValue(ResourceValueList elements, EnumFieldType type)
 {
     _type     = type;
     _elements = elements;
     if (_elements.Count > 0)
     {
         SelectedElementIndex = 0;
     }
 }
Exemple #2
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns></returns>
        public ResourceValueList Clone()
        {
            ResourceValueList newList = new ResourceValueList();

            foreach (IResourceValue value in this.Values)
            {
                newList.Add(value.MyType.Name, value.Clone());
            }

            return(newList);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:EnumElementFieldValue"/> class.
 /// </summary>
 /// <param name="fields">The fields.</param>
 /// <param name="type">The type.</param>
 internal EnumElementFieldValue(ResourceValueList fields, EnumElementFieldType type)
 {
     _type   = type;
     _fields = fields;
 }