示例#1
0
        public void ReadVault()
        {
            string vaultPath = GetVaultPath();

            OutLineFormat("Loading vaults from {0}", ConsoleColor.Cyan, vaultPath);
            VaultDatabase vaultDatabase = VaultDatabase.FromFile(vaultPath);

            foreach (Vault toRead in Vault.LoadAll(vaultDatabase))
            {
                OutLineFormat("Vault {0}", ConsoleColor.DarkBlue, toRead.Name);
                foreach (string key in toRead.Keys)
                {
                    OutLineFormat("{0}: {1}", key, toRead[key]);
                }
                OutLine();
            }
        }