Esempio n. 1
0
        private void ShowHideLeftTimer_Click(object sender, RoutedEventArgs e)
        {
            if (f1Window.LapTimerLeft.Active)
            {
                f1Window.LapTimerLeftFadeOut();
            }
            else
            {
                int carIdx = CameraModule.FollowedDriver;
                if (carIdx == -1)
                {
                    return;
                }

                LiveStandingsItem driver = ((LiveStandingsModule)api.FindModule("LiveStandings")).FindDriver(carIdx);
                if (driver == null)
                {
                    return;
                }

                f1Window.LapTimerLeftFadeIn(driver);
            }
        }