示例#1
0
        public object Clone()
        {
            ScreenInfo newObj = new ScreenInfo();
            bool       res    = this.CopyTo(newObj);

            if (!res)
            {
                return(null);
            }
            else
            {
                return(newObj);
            }
        }
示例#2
0
        public bool CopyTo(object obj)
        {
            if (!(obj is ScreenInfo))
            {
                return(false);
            }
            ScreenInfo temp = (ScreenInfo)obj;

            temp.ScreenSN           = this.ScreenSN;
            temp.ScreenAliaName     = this.ScreenAliaName;
            temp.ScreenWidth        = this.ScreenWidth;
            temp.ScreenHeight       = this.ScreenHeight;
            temp.IsScreenRegister   = this.IsScreenRegister;
            temp.ScreenLongitude    = this.ScreenLongitude;
            temp.ScreenLatitude     = this.ScreenLatitude;
            temp.ScreenSenderCount  = this.ScreenSenderCount;
            temp.ScreenScanerCount  = this.ScreenScanerCount;
            temp.ScreenMonitorCount = this.ScreenMonitorCount;
            return(true);
        }