Пример #1
0
 static void Main(string[] args)
 {
     Simulator Sim = new Simulator();
     Sim.Config = new Config()
     {
         RunningTime = 60 * 60 * 8, // 60s * 30min
         Scheduler = new StaticScheduler(),
         Buses = new Dictionary<int, int>()
         {
             {0, 2} // line 0 bus * 2
         },
         BusInterval = 60 * 5 // 60s * 5min
     };
     Sim.Start();
     Console.ReadKey();
 }
Пример #2
0
 private void Button_Launch_Click(object sender, RoutedEventArgs e)
 {
     Simulator Sim = new Simulator();
     DataView.Clear();
     Sim.Config = Settings_Form.Config;
     Sim.Start();
 }