private void Logic_NewRaceEvent(object sender, RaceEvent e)
        {
            switch (e.EventCode)
            {
            case  "T5":

                this.BeginInvoke((System.Windows.Forms.MethodInvoker) delegate()
                {
                    pict5minleft.Image = Marconi.Properties.Resources.race_red_light;

                    btnIndividualRecall.Enabled = true;
                    btGeneralRecall.Enabled     = true;
                });

                break;

            case "T4":
                pict4minleft.Image = Marconi.Properties.Resources.race_red_light;
                break;

            case "T1":
                pict1minleft.Image = Marconi.Properties.Resources.race_red_light;
                break;

            case "T0":
                AllLightsOff();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 private void R_NewRaceEvent(object sender, RaceEvent e)
 {
     Logic_NewRaceEvent(sender, e);
 }