public ImageLibrary(SearchSortManager searcher, string directory)
        {
            this.searcher  = searcher;
            this.directory = directory;

            libraryListXml = new XmlSettingManager <SavedLibraryList>
                                 (System.IO.Path.Combine(directory, libraryListFileName));

            libraryDiffXml = new XmlSettingManager <List <KeyValuePair <string, FileInformation> > >
                                 ((System.IO.Path.Combine(directory, libraryDiffFileName)));
        }
Example #2
0
        public ApplicationCoreData(string directory)
        {
            this.directory = directory;

            this.IsCoreSettingsLoaded    = false;
            this.IsLibrarySettingsLoaded = false;

            settingXml = new XmlSettingManager <ApplicationSettings>
                             (System.IO.Path.Combine(directory, settingFileName));

            librarySettingXml = new XmlSettingManager <LibrarySettings>
                                    (System.IO.Path.Combine(directory, librarySettingFileName));

            this.coreSettings = new ApplicationSettings();

            this.Tags = new TagDictionary();

            this.XmlLoadingMessages = new List <string>();

            this.Searcher = new SearchSortManager();
            //this.KnownFoldersManager = new KnownFoldersManager();
        }