Esempio n. 1
0
 /// <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";
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 public FaultCodesPage()
 {
     InitializeComponent();
     CTS       = new CancellationTokenSource();
     GeotabAPI = new GeotabAPI(Program.API, CTS.Token);
 }