Example #1
0
 public static void Pause()
 {
     MoveTimer.Stop();
     PMoveTimer.Stop();
     GenCarTimer.Stop();
     WorkTimer.Stop();
     GenPeopleTimer.Stop();
     LightsTimer.Stop();
 }
Example #2
0
 public static void Start()
 {
     MoveTimer.Start();
     PMoveTimer.Start();
     GenCarTimer.Start();
     WorkTimer.Start();
     GenPeopleTimer.Start();
     LightsTimer.Start();
     TrafficLight.CreateLight();
     IsReady = true;
 }
Example #3
0
 public static void Stop()
 {
     Cars.Clear();
     Peoples.Clear();
     Deleter.Clear();
     MoveTimer.Stop();
     PMoveTimer.Stop();
     LightsTimer.Stop();
     GenCarTimer.Stop();
     GenPeopleTimer.Stop();
     WorkTimer.Stop();
     CarCount.Text          = "0";
     CurrentlyCarCount.Text = "0";
     WorkTime.Text          = "0 c";
     Cpm.Text = "0";
     WorkTm   = 0;
     UserPanel.ResetBackColor();
     UserPanel.Invalidate();
 }