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); }
public ADACImportCurrentMakerModels(VGCore core) : base(core) { this.CurrentType = (int)ImporterBase.ImporterType.ADAC_CURRENTMAKER; this.baseUrl = "https://www.adac.de"; this.baseUrlLang = string.Empty; }
public ADACImportCarDetails(VGCore core) : base(core) { this.CurrentType = (int)ImporterBase.ImporterType.ADAC_TYPEDB; this.baseUrl = "https://www.adac.de"; this.baseUrlLang = string.Empty; Initialize(); }
public ConfigurationObj(string configFile = null, VGCore core = null) { this._core = core; this.SetDefaultSettings(); if (!string.IsNullOrWhiteSpace(configFile)) { this.LoadConfiguration(configFile); } }
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(); }
public ADACImporter(VGCore core) : base(core) { this.CurrentType = (int)ImporterBase.ImporterType.ADAC; baseUrl = "https://www.adac.de"; baseUrlLang = string.Empty; }
public SQLCarDetails(MySQLExporter mySqlExporter) { _mySqlExporter = mySqlExporter; Core = mySqlExporter.Core; }
protected ImporterBase(VGCore core) { this.Core = core; this.RecLimit = this.Core.Conf.RecordLimit; }
public SQLCarMaker(MySQLExporter mySqlExporter) { _mySqlExporter = mySqlExporter; Core = mySqlExporter.Core; }
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; }