Beispiel #1
0
        /// <summary>
        /// Used to Update FactoryInventory Before doing a data save
        /// Updates everything except for the ID
        /// </summary>
        /// <param name="data">Data to update</param>
        public void Update(FactoryInventoryModel data)
        {
            if (data == null)
            {
                return;
            }

            Uri           = data.Uri;
            Name          = data.Name;
            Description   = data.Description;
            Tokens        = data.Tokens;
            Quantities    = data.Quantities;
            Category      = data.Category;
            IsLimitSupply = data.IsLimitSupply;
            IsDefault     = data.IsDefault;
        }
Beispiel #2
0
 /// <summary>
 /// Make a New Model, and Update it with data
 /// </summary>
 /// <param name="data"></param>
 public FactoryInventoryModel(FactoryInventoryModel data)
 {
     Initialize();
     Update(data);
 }