Example #1
0
 public DeviceItem(TVInfo tv, string deviceName, string screen)
 {
     this.uuid       = tv.uuid;
     this.name       = tv.name;
     this.type       = tv.type;
     this.ip         = tv.ip;
     this.dlnaOk     = tv.dlnaOk;
     this.miracastOk = tv.miracastOk;
     this.rdpOk      = tv.rdpOk;
     this.deviceName = deviceName;
     this.screen     = screen;
 }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if ((obj.GetType().Equals(this.GetType())) == false)
            {
                return(false);
            }
            TVInfo temp = null;

            temp = (TVInfo)obj;

            return(this.name.Equals(temp.name) && this.ip.Equals(temp.ip) && this.uuid.Equals(temp.uuid));
        }