예제 #1
0
        public DataManager(IConfigDatabase config)
        {
            databaseManager = new DatabaseManager(config.GetConnectionString(), config.GetDatabaseName());

            stringGenerator = new XMLGenerator();

            targetPath = config.GetTargetForDataManager();
        }
        public DatabaseProvider(ImportantOptions config)
        {
            databaseManager = new WorkWithDatabase(config.ConnectionOptions.ConnectionStrings, config.ConnectionOptions.TypeOfDatabase);

            targetPath = config.ConnectionOptions.DataDirectory;

            stringGenerator = new XMLGenerator();
        }
예제 #3
0
 public XMLFileStorage(string path, IXMLGenerator <ICollection <Uri>, XElement> XMLGenerator)
 {
     this.path         = path;
     this.XMLGenerator = XMLGenerator;
 }
예제 #4
0
 public CurvesController(IDataPublisher objPublisher, ICSVParser objCSVParser, IXMLGenerator objXMLGenerator)
 {
     dataPublisher = objPublisher;
     csvParser     = objCSVParser;
     xmlGenerator  = objXMLGenerator;
 }