Esempio n. 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();
        }
Esempio n. 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;
        }