private async void TrackMapBuilderView_Load(object sender, EventArgs e) { try { _trackMapRepo = ServiceProvider.GetRequiredService <ITrackMapRepository>(); _imageHelper = ServiceProvider.GetRequiredService <IImageHelper>(); _mapService = ServiceProvider.GetRequiredService <ITrackMapService>(); _telemetryFileParser = ServiceProvider.GetRequiredService <IIbtFileParser>(); IOptionsMonitor <iRacingTelemetryOptions> optionsAccessor = ServiceProvider.GetRequiredService <IOptionsMonitor <iRacingTelemetryOptions> >(); _options = (optionsAccessor == null) ? throw new ArgumentNullException(nameof(optionsAccessor)) : optionsAccessor.CurrentValue; await GetTrackMapList(); _loading = false; } catch (Exception ex) { ExceptionHandler(ex); } }
protected override void TelemetryForm_Load(object sender, EventArgs e) { try { base.TelemetryForm_Load(sender, e); _trackMapRepo = ServiceProvider.GetRequiredService <ITrackMapRepository>(); _imageHelper = ServiceProvider.GetRequiredService <IImageHelper>(); _mapService = ServiceProvider.GetRequiredService <ITrackMapService>(); if (Session != null) { ParseTelemetrySession(Session); } _panelWidth = splitContainer1.Panel1.Width; SetLapViewListHiddenState(true); } catch (Exception ex) { ExceptionHandler(ex); } }