public MySQLExporter(VGCore core, List <MakerObj> MakerObjObjects, List <ModelObj> modelsObjects,
                             List <ModelTypeObj> modelTypesObjects, List <CarDetailsObj> carDetailsObjects, string server = "megraso.de",
                             string database = "h26346_cardata", bool ssl = true,
                             long port       = 3306, string user = "******", string password = "******")
        {
            this.SqlServer   = server;
            this.SqlDatabase = database;
            this.Sqlssl      = ssl;
            this.SqlPort     = port;
            this.SqlUser     = user;
            this.SqlPassword = password;

            this.MakersObjList     = MakerObjObjects;
            this.modelObjList      = modelsObjects;
            this.modelTypeObjList  = modelTypesObjects;
            this.carDetailsObjList = carDetailsObjects;

            this.Core = core;

            Initialize();
            _sqlCarMaker = new SQLCarMaker(this);

            _sqlCarModel = new SQLCarModel(this);

            _sqlCarModelType = new SQLCarModelType(this);

            _sqlCarDetail = new SQLCarDetails(this);
        }
Пример #2
0
        public ADACImportCurrentMakerModels(VGCore core) : base(core)
        {
            this.CurrentType = (int)ImporterBase.ImporterType.ADAC_CURRENTMAKER;

            this.baseUrl     = "https://www.adac.de";
            this.baseUrlLang = string.Empty;
        }
Пример #3
0
        public ADACImportCarDetails(VGCore core) : base(core)
        {
            this.CurrentType = (int)ImporterBase.ImporterType.ADAC_TYPEDB;

            this.baseUrl     = "https://www.adac.de";
            this.baseUrlLang = string.Empty;

            Initialize();
        }
Пример #4
0
        public ConfigurationObj(string configFile = null, VGCore core = null)
        {
            this._core = core;
            this.SetDefaultSettings();

            if (!string.IsNullOrWhiteSpace(configFile))
            {
                this.LoadConfiguration(configFile);
            }
        }
Пример #5
0
        public VehicleGrabber()
        {
            //string appDir = GetAppPath(Assembly.GetExecutingAssembly().Location);
            string appDataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), VGCore.COMPANY_DIR, VGCore.APPNAME);

            configFileName = Path.Combine(appDataDir, VGCore.DEFAULT_CONFIG_FILE_NAME);


            Directory.CreateDirectory(appDataDir);

            this.Core = new VGCore(configFileName);

            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);

            this.writeLinetoLogWindowDelegate = new WriteLinetoLogWindowDelegate(this.WriteLinetoLogWindow);



            this.Core.TriggerLogLine = this.WriteLinetoLogWindow;
            this.Core.UpdateTriggerLogLine();
            InitializeComponent();
            this.ReadConfiguration();
        }
Пример #6
0
 public ADACImporter(VGCore core) : base(core)
 {
     this.CurrentType = (int)ImporterBase.ImporterType.ADAC;
     baseUrl          = "https://www.adac.de";
     baseUrlLang      = string.Empty;
 }
Пример #7
0
 public SQLCarDetails(MySQLExporter mySqlExporter)
 {
     _mySqlExporter = mySqlExporter;
     Core           = mySqlExporter.Core;
 }
Пример #8
0
 protected ImporterBase(VGCore core)
 {
     this.Core     = core;
     this.RecLimit = this.Core.Conf.RecordLimit;
 }
Пример #9
0
 public SQLCarMaker(MySQLExporter mySqlExporter)
 {
     _mySqlExporter = mySqlExporter;
     Core           = mySqlExporter.Core;
 }
Пример #10
0
 public AutomobilioImporter(VGCore core) : base(core)
 {
     this.CurrentType = (int)ImporterBase.ImporterType.AUTOMOBILIO;
     this.baseUrl     = "http://automobilio.info";
     this.baseUrlLang = "/de/";
 }
 public SQLCarModelType(MySQLExporter mySqlExporter)
 {
     _mySqlExporter = mySqlExporter;
     Core           = mySqlExporter.Core;
 }