Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 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();
        }