private static DeviceRecords LoadDeviceRecords()
        {
            var ser = DeviceDataSerializer;

            try
            {
                using (var rd = new StreamReader(DeviceCachePath))
                {
                    return((DeviceRecords)ser.Deserialize(rd));
                }
            }
            catch (FileNotFoundException)
            {
                var recs = new DeviceRecords();
                recs.device = new DeviceRecordsDevice[0];
                return(recs);
            }
        }
 private static DeviceRecords LoadDeviceRecords()
 {
     var ser = DeviceDataSerializer;
     try
     {
         using (var rd = new StreamReader(DeviceCachePath))
         {
             return (DeviceRecords)ser.Deserialize(rd);
         }
     }
     catch (FileNotFoundException)
     {
         var recs = new DeviceRecords();
         recs.device = new DeviceRecordsDevice[0];
         return recs;
     }
 }