Ejemplo n.º 1
0
        void Main_Load(object sender, EventArgs e)
        {
            activationFilterCheckBox.Checked = Settings.Default.ActivationFilter;

            var cultureInfo = IdentifyCultures();

            dataCollector = new DataCollector(Settings.Default.CarConfigs);
            //dataCollector.AverageFuelPerLap = 1.9f;
            //dataCollector.AverageLapTimeSpan = 66.2.Seconds();

            dataCollector.Connected      += dc_Connected;
            dataCollector.Disconnected   += dc_Disconnected;
            dataCollector.NewSessionData += dc_NewSessionData;

            pitCrew = new PitCrew(dataCollector, cultureInfo);
            pitCrew.Start();

            LoadCarConfigurations();
            EnableCarDetailsFields();

            BuildVoiceCommandHelpList();
        }