public void Read()
        {
            var launchLocks = new List <LaunchLock>();

            foreach (var fileInfo in LockFinder.LockInfoCollection)
            {
                var launchLockString = FileSytem.File.ReadAllText(fileInfo.FullName);
                launchLocks.Add(JsonOperations.Deserialize(fileInfo.FullName, launchLockString) as LaunchLock);
            }

            LaunchLocks = launchLocks;
        }
Beispiel #2
0
        public void Write()
        {
            var lockJson = JsonOperations.Serialize(LockBuilder.LaunchLock);

            FileSystem.File.WriteAllText(LockBuilder.LaunchLock.FileName, lockJson);
        }