private void InitializeGraphics() { _graphicsInfo = new GraphicsInfoPageFile(); var result = _graphicsInfo.Connect(); Log($"Connected to graphics shared memory: '{result.Success}'."); if (!result.Success) { Log($"Failed to connect to graphics shared memory: '{result.ErrorInfo.InnerException.Message}'."); _graphicsInfo = null; } }
private void UpdateLapTimes(GraphicsInfoPageFile graphicsInfo) { UpdateLapTimeTextBox(graphicsInfo?.BestLapTime, uxBestLap); UpdateLapTimeTextBox(graphicsInfo?.EstimatedLapTime, uxEstimatedLap); UpdateLapTimeTextBox(graphicsInfo?.PreviousLapTime, uxPreviousLap); }