示例#1
0
 internal EnumFieldValue(ResourceValueList elements, EnumFieldType type)
 {
     _type     = type;
     _elements = elements;
     if (_elements.Count > 0)
     {
         SelectedElementIndex = 0;
     }
 }
示例#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);
        }
示例#3
0
 /// <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;
 }