Ejemplo n.º 1
0
        public void DoItall()
        {
            T1.Delegations();
            T2.Delegations();
            T3.Delegations();
            PP.Delegations();
            PD.Delegations();

            /* Inicialização */
            new Thread(() =>
            {
                int currentIndex = 0;
                while (currentIndex < (Airplanes.Length))
                {
                    if (T1.AddAirplane(Airplanes[currentIndex], Flow.Down) == 0)
                    {
                        currentIndex++;
                        Thread.Sleep(200);
                    }
                }
            }).Start();
        }