Esempio n. 1
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(RankingAction objToCopy)
        {
            if (objToCopy == null)
            {
                return(false);
            }

            Init(objToCopy.ID, objToCopy.Name, objToCopy.Category, objToCopy.Threshold, objToCopy.Points);
            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(RankingAction objToCopy)
        {
            if (objToCopy == null)
                return false;

            Init(objToCopy.ID, objToCopy.Name, objToCopy.Category, objToCopy.Threshold, objToCopy.Points);
            return true;
        }