Example #1
0
        /// <summary>
        /// Copies the specified destination.
        /// </summary>
        /// <param name="destination">The destination.</param>
        protected override void Copy(object destination)
        {
            CategoriesValue dest = destination as CategoriesValue;

            dest.CategoryID   = CategoryID;
            dest.CategoryName = CategoryName;
            dest.Description  = Description;
            dest.Picture      = Picture;

            base.Copy(destination);
        }
Example #2
0
        /// <summary>
        /// Copies the specified destination.
        /// </summary>
        /// <param name="destination">The destination.</param>
        protected void Copy(object destination)
        {
            CategoriesValue dest = destination as CategoriesValue;

            if (dest == null)
            {
                return;
            }
            dest.CategoryID   = CategoryID;
            dest.CategoryName = CategoryName;
            dest.Description  = Description;
        }