/// <summary>
        /// Clone
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            MonitorCtrlConfigInfo newObj = new MonitorCtrlConfigInfo();

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

            if (info == null)
            {
                return(false);
            }
            info.IsEnableMonitorCtrl = IsEnableMonitorCtrl;
            info.CtrlLogValidDays    = CtrlLogValidDays;
            if (MonitorCtrlInfoList == null)
            {
                info.MonitorCtrlInfoList = null;
            }
            else
            {
                info.MonitorCtrlInfoList = new List <IMonitorCtrlInfo>();
                for (int i = 0; i < MonitorCtrlInfoList.Count; i++)
                {
                    info.MonitorCtrlInfoList.Add(MonitorCtrlInfoList[i]);
                }
            }
            return(true);
        }
 /// <summary>
 /// Clone
 /// </summary>
 /// <returns></returns>
 public object Clone()
 {
     MonitorCtrlConfigInfo newObj = new MonitorCtrlConfigInfo();
     CopyTo(newObj);
     return newObj;
 }