コード例 #1
0
        /// <summary>
        /// Update
        /// </summary>
        /// <param name="newData"></param>
        /// <returns></returns>
        public bool Update(PotionsModel newData)
        {
            if (newData == null)
            {
                return(false);
            }

            potionType = newData.potionType;
            Addition   = newData.Addition;
            Guid       = newData.Guid;
            ImageURI   = newData.ImageURI;


            return(true);
        }
コード例 #2
0
 /// <summary>
 /// Create a copy
 /// </summary>
 /// <param name="data"></param>
 public PotionsModel(PotionsModel data)
 {
     Update(data);
 }