Exemplo n.º 1
0
        /// <summary>
        /// Loads the specified field.
        /// </summary>
        /// <param name="field">The field.</param>
        /// <returns></returns>
        public static MetaDictionary Load(MetaField field)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            return(MetaDictionary.Load(field.Id));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Loads the specified meta field id.
        /// </summary>
        /// <param name="MetaFieldId">The meta field id.</param>
        /// <returns></returns>
        public static MetaDictionary Load(int metaFieldId)
        {
            MetaDictionary retVal = new MetaDictionary();

            retVal._ownerMetaFieldId = metaFieldId;

            retVal.ReloadMetaDictionary();

            return(retVal);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Loads the specified meta field id.
        /// </summary>
        /// <param name="MetaFieldId">The meta field id.</param>
        /// <returns></returns>
        public static MetaDictionary Load(int metaFieldId)
        {
            MetaDictionary retVal = new MetaDictionary();

            retVal._ownerMetaFieldId = metaFieldId;

            retVal.ReloadMetaDictionary();

            return retVal;
        }
Exemplo n.º 4
0
 public void LoadDictionary()
 {
     if (_dictionary == null)
     {
         switch (_dataType)
         {
         case MetaDataType.DictionaryMultivalue:
         case MetaDataType.DictionarySingleValue:
         case MetaDataType.EnumMultivalue:
         case MetaDataType.EnumSingleValue:
             _dictionary = MetaDictionary.Load(Id);
             break;
         }
     }
 }
Exemplo n.º 5
0
 public void LoadDictionary()
 {
     if (_dictionary == null)
     {
         switch (_dataType)
         {
             case MetaDataType.DictionaryMultivalue:
             case MetaDataType.DictionarySingleValue:
             case MetaDataType.EnumMultivalue:
             case MetaDataType.EnumSingleValue:
                 _dictionary = MetaDictionary.Load(Id);
                 break;
         }
     }
 }