public static HouseholdKeyEntryList Load([NotNull] string path)
        {
            LPGReader             lpgReader  = new LPGReader();
            string                resultFile = Path.Combine(path, "Results.General.sqlite");
            HouseholdKeyEntryList hkl        = new HouseholdKeyEntryList {
                HouseholdKeyEntries = lpgReader.ReadFromJson <HouseholdKeyEntry>("HouseholdKeys", resultFile)
            };

            return(hkl);
        }
Exemplo n.º 2
0
        public static ResultFileEntryLoader Load([NotNull] string path)
        {
            LPGReader             lpgReader  = new LPGReader();
            string                resultFile = Path.Combine(path, "Results.General.sqlite");
            var                   results    = lpgReader.ReadFromJson <ResultFileEntry>("ResultFileEntries", resultFile);
            ResultFileEntryLoader rfel       = new ResultFileEntryLoader();

            rfel.Files.Clear();
            rfel.Files.AddRange(results);
            return(rfel);
        }