Пример #1
0
        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;
            }
        }
Пример #2
0
 private void UpdateLapTimes(GraphicsInfoPageFile graphicsInfo)
 {
     UpdateLapTimeTextBox(graphicsInfo?.BestLapTime, uxBestLap);
     UpdateLapTimeTextBox(graphicsInfo?.EstimatedLapTime, uxEstimatedLap);
     UpdateLapTimeTextBox(graphicsInfo?.PreviousLapTime, uxPreviousLap);
 }