/// <summary>
        /// 拷贝
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public bool CopyTo(object obj)
        {
            CtrlPowerOnRes info = (CtrlPowerOnRes)obj;

            if (info == null)
            {
                return(false);
            }
            info.CtrlMonitorReason   = CtrlMonitorReason;
            info.CtrlThreshold       = CtrlThreshold;
            info.CtrlTime            = CtrlTime;
            info.DisplayName         = DisplayName;
            info.CtrlThreshold       = CtrlThreshold;
            info.SecondCtrlThreshold = SecondCtrlThreshold;
            info.DesTempType         = DesTempType;
            if (PowerCtrlResList == null)
            {
                info.PowerCtrlResList = null;
            }
            else
            {
                info.PowerCtrlResList = new List <OnePowerCtrlRes>();
                for (int i = 0; i < PowerCtrlResList.Count; i++)
                {
                    info.PowerCtrlResList.Add((OnePowerCtrlRes)PowerCtrlResList[i].Clone());
                }
            }
            return(true);
        }
        /// Clone
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            CtrlPowerOnRes newObj = new CtrlPowerOnRes();

            CopyTo(newObj);
            return(newObj);
        }
 /// Clone
 /// </summary>
 /// <returns></returns>
 public object Clone()
 {
     CtrlPowerOnRes newObj = new CtrlPowerOnRes();
     CopyTo(newObj);
     return newObj;
 }