Пример #1
0
        public PartialDatabaseManager(string databaseFolder,
                                      string databaseExtension,
                                      IDatabaseFileMapper <PartialDatabase, DataFile> mapper,
                                      IDataManagerEventManager dataEventManager, Process process)
        {
            _dataFileManager    = new DataFileManager();
            _databaseFileMapper = mapper;

            _databaseFolder    = databaseFolder;
            _databaseExtension = databaseExtension;

            if (_databaseFileMapper is null)
            {
                _databaseFileMapper = new PartialDatabaseFileMapper();
            }

            _databases = new List <PartialDatabase>();

            _process = process;
        }
Пример #2
0
        public DatabaseManager(string databaseFolder,
                               string databaseExtension,
                               IDatabaseFileMapper <Database, DataFile> mapper,
                               IDataManagerEventManager dataEventManager, Process process)
        {
            _dataFileManager    = new DataFileManager();
            _databaseFileMapper = mapper;

            _databaseFolder    = databaseFolder;
            _databaseExtension = databaseExtension;

            if (_databaseFileMapper is null)
            {
                _databaseFileMapper = new DatabaseFileMapper();
            }

            _databases = new List <Database>();
            _process   = process;

            // new
            _storageManager = new StorageManager(_process);
            _databases2     = new List <Database2>();
        }