Beispiel #1
0
        private void BtnStop_Click(object sender, RoutedEventArgs e)
        {
            SimulationControlHandler.ResetButtonClick();
            LabelSimulationTime.Content = "00:00:00";
            Stopwatch.Reset();

            CommandLoop.Register();
            WPFLoop.Register();
            AILoop.Register();
            GPSSystem.Setup();
        }
Beispiel #2
0
        private void Initialize()
        {
            GPSSystem.Setup();

            CityRenderHandler        = new CityRenderHandler(this, CanvasMain);
            CustomerRenderHandler    = new CustomerRenderHandler(CanvasMain, this);
            CarRenderHandler         = new CarRenderHandler(CanvasMain, this);
            SimulationControlHandler = new SimulationControlHandler(this);
            PropertyDisplayHandler   = new PropertyDisplayHandler(this);
            ZoomHandler = new ZoomHandler(this);

            DrawingLoop.Start();
            ZoomLoop.Start();

            WPFLoop.Subscribe(Update);

            CommandLoop.Subscribe(CmdUpdate);

            PreviewMouseWheel           += ZoomHandler.Scroll;
            ResultImport.ResultImported += ResultImportComplete;
        }
Beispiel #3
0
 private void BtnPause_Click(object sender, RoutedEventArgs e)
 {
     SimulationControlHandler.PauseButtonClick();
     Stopwatch.Stop();
 }
Beispiel #4
0
 private void BtnStart_Click(object sender, RoutedEventArgs e)
 {
     SimulationControlHandler.StartButtonClick();
     Stopwatch.Start();
 }
Beispiel #5
0
 private void BtnLoad_Click(object sender, RoutedEventArgs e)
 {
     SimulationControlHandler.LoadButtonClick();
 }
Beispiel #6
0
 private void BtnSelect_Click(object sender, RoutedEventArgs e)
 {
     SimulationControlHandler.SelectButtonClick();
 }