public bool Open(string filepath) { var fileAccess = new FileWrapper(); lock (_syncLock) { try { if (File.Exists(filepath)) { var json = fileAccess.Read(filepath); var list = JsonConvert.DeserializeObject <List <CpuInfo> >(json); _cpuLookup.Clear(); foreach (var cpu in list) { AddOrUpdate(cpu); } } } catch { throw; } } return(true); }