Esempio n. 1
0
        private void Start2_Click(object sender, EventArgs e)
        {
            TrafficLightsForm trafficLights = new TrafficLightsForm(2, ThreeColorFirstTry, ThreeColorRecod);
            DialogResult      result        = trafficLights.ShowDialog(this);

            ThreeColorFirstTry = trafficLights.FirstTry;
            ThreeColorRecod    = trafficLights.Recod;
            Log2FirstTry.Text  = ThreeColorFirstTry.Log;
            Log2Record.Text    = ThreeColorRecod.Log;
        }
Esempio n. 2
0
        private void Start1_Click(object sender, EventArgs e)
        {
            TrafficLightsForm trafficLights = new TrafficLightsForm(1, OneColorFirstTry, OneColorRecord);
            DialogResult      result        = trafficLights.ShowDialog(this);

            OneColorFirstTry  = trafficLights.FirstTry;
            OneColorRecord    = trafficLights.Recod;
            Log1FirstTry.Text = OneColorFirstTry.Log;
            Log1Record.Text   = OneColorRecord.Log;
        }