Пример #1
0
 public static void Pause()
 {
     MoveTimer.Stop();
     GenCarTimer.Stop();
     WorkTimer.Stop();
     LightsTimer.Stop();
 }
Пример #2
0
 public static void Start()
 {
     MoveTimer.Start();
     GenCarTimer.Start();
     WorkTimer.Start();
     LightsTimer.Start();
     CurrentRoad        = new Road(1, 1, 1, 1);
     CurrentRoadTransit = new RoadTransit(false, false, false, false, 1, 1, 1, 1);
     TrafficLight.CreateLight();
     IsReady = true;
 }
Пример #3
0
 public static void Start()
 {
     MoveTimer.Start();
     PMoveTimer.Start();
     GenCarTimer.Start();
     WorkTimer.Start();
     GenPeopleTimer.Start();
     LightsTimer.Start();
     TrafficLight.CreateLight();
     IsReady = true;
 }
Пример #4
0
 public static void Stop()
 {
     Car.Clear();
     Deleter.Clear();
     MoveTimer.Stop();
     LightsTimer.Stop();
     GenCarTimer.Stop();
     WorkTimer.Stop();
     CarCount.Text          = "0";
     CurrentlyCarCount.Text = "0";
     WorkTime.Text          = "0 c";
     Cpm.Text = "0";
     WorkTm   = 0;
     UserPanel.ResetBackColor();
     UserPanel.Invalidate();
 }
Пример #5
0
 public static void Start()
 {
     MoveTimer.Start();
     LightsTimer.Start();
     GenCarTimer.Start();
 }