/// <summary> /// Initializes a <see cref="GeoGoQuery"/> instance /// </summary> /// <param name="GeoGoPage"><see cref="FuelTransPage"/> instanced, assigned to <see cref="GGP"/> & contains <see cref="DBP"/></param> /// <param name="ct">Cancellation Token, assigned to <see cref="CT"/></param> public GeoGoQuery(FuelTransPage GeoGoPage, CancellationToken ct) { GGP = GeoGoPage; DBP = GeoGoPage.DBP; CT = ct; GeotabAPI = new GeotabAPI(Program.API, ct); ConStr = "Provider = Microsoft.ACE.OLEDB.12.0; Data Source = " + DBP.File + "; Persist Security Info = False"; }
/// <summary> /// Use new <see cref="CancellationToken"/> /// </summary> /// <param name="ct">The <see cref="CancellationToken"/></param> public void UpdateCT(CancellationToken ct) { CT = ct; GeotabAPI = new GeotabAPI(Program.API, ct); }
public FaultCodesPage() { InitializeComponent(); CTS = new CancellationTokenSource(); GeotabAPI = new GeotabAPI(Program.API, CTS.Token); }