Beispiel #1
0
        /// <summary>
        /// Move the contents of the DictionaryStore objects back into
        /// Dictionary objects - recursive method.
        /// </summary>
        public void RestoreFromStore()
        {
            if (subdirectoriesStore != null)
            {
                Subdirectories      = subdirectoriesStore.getDictionary();
                subdirectoriesStore = null;

                Files      = filesStore.getDictionary();
                filesStore = null;

                foreach (ManifestDirectoryInfo nextDir in Subdirectories.Values)
                {
                    nextDir.RestoreFromStore();
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Move the contents of the Dictionary objects into DictionaryStore
        /// objects - recursive method.
        /// </summary>
        public void SaveToStore()
        {
            foreach (ManifestDirectoryInfo nextDir in Subdirectories.Values)
            {
                nextDir.SaveToStore();
            }

            filesStore =
                new DictionaryStore <string, ManifestFileInfo>(Files);

            Files = null;

            subdirectoriesStore =
                new DictionaryStore <string, ManifestDirectoryInfo>(Subdirectories);

            Subdirectories = null;
        }