Beispiel #1
0
        public Database(RepoClient repoClient)
        {
            _RepoClient = repoClient;
            _Keys       = (Namespace[])Enum.GetValues(typeof(Namespace));
            Array.Sort(_Keys);
            _Values = new RecordDictionary[_Keys.Length];
            for (var i = 0; i < _Keys.Length; i++)
            {
                _Values[i] = new RecordDictionary(_Keys[i], repoClient);
            }
            Load();
            Render();
#if DEBUG
            Save();
#endif
        }
Beispiel #2
0
 public RecordDictionary(Namespace ns, RepoClient repoClient)
 {
     Namespace = ns;
     FilePath  = Path.Combine(repoClient.LocalPath, $"database/{Namespace.ToString().ToLower()}.md");
 }