Exemplo n.º 1
0
        private bool IsDeviceRegistered(SQLServerConnection SQLH)
        {
            EnsureTableExists(SQLH);
            bool registered = SQLH.Table <SyncDevicesInfo>().Any(x => x.DeviceId == DeviceId);

            this.RegisterStatus = registered ? DeviceRegisterStatus.Registered : DeviceRegisterStatus.NotRegistered;
            return(registered);
        }
Exemplo n.º 2
0
 public Device()
 {
     this.IDeviceInfo    = new DeviceInfo();
     this.DeviceId       = IDeviceInfo.DeviceId;
     this.RegisterStatus = DeviceRegisterStatus.Unkown;
 }